doctrine/mongodb-odm — pull request #207 by kaiwa (2011-12-13 20:36:27+00:00)
Title: Fixing DocumentPersister::prepareQueryValue() for embedded documents

prepareQueryValue() does not load the metadata of embedded documents correctly. So when trying to access a field like this

```php
->field('bidList.highest.bidder.id')->equals($bidder->getId())
```

it is not recognizing that `bidList.highest` is embedding another document and fails to load the mapping for it:

```
Doctrine\ODM\MongoDB\MongoDBException: No mapping found for field 'bidder' in class 'App\BaseBundle\Document\Item'.
```

I was very confused that this is not working currently, but after i have fixed prepareQueryValue() to handle these fields correctly, i discovered an older pull request which is adressing the same bug:

https://github.com/doctrine/mongodb-odm/pull/102

Seems it was not merged yet due to conflicts and coding standard issues so i would like to take a new approach to fix this.