on line 525, version ed789d7
That goes back to when @jwage implemented collection priming in 2da6e9c. The index used to read class metadata is the $fieldName argument of the method, which I assume would be a field on the collection itself. Can you be more specific about the error you're experiencing?
Perhaps the exception message along with pastes of the relevant models?
I have similar issue, maybe @bazo is referencing the same one.
You cannot prime any attributes in the embedded documents. For example, you have
public function indexAction()
$dm = $this->get('doctrine.odm.mongodb.document_manager');
$qb = $dm->createQueryBuilder('Product')
$products = $qb->getQuery()->execute();
return array('products' => $products);
I mean the part ->field('attributeValues.attribute')->prime(true). Of course, Product has no such attribute. Is there some way to prime attributes in embedded documents? Is it to be supported in some later version?
Tracking this in #624 as a new feature request.