doctrine/mongodb-odm — Issue #210: Error using together "select()" and "selectSlice()"  with a same field
Author: idetia
Created: 2011-12-16 10:27:56+00:00
State: open

$qb = $dm->createQueryBuilder('Post')
->field('_id')->equals($post->getId())
->select('comments')
->selectSlice('comments', 0, 10)
->getQuery()->execute();

This example throws the exception: Warning: Cannot use a scalar value as an array in vendor/doctrine-mongodb/lib/Doctrine/MongoDB/Query/Builder.php line 332