doctrine/phpcr-odm — pull request #196 by dantleech (2012-12-09 17:44:59+00:00)
Title: Added createQueryBuilder() method to Doc manager

Hi,

Ive added a ``createQueryBuilder`` method to the DM, it returns the query builder with the "from" and "phpcr:class = 'FQN'" stuff preloaded. So it acts like the Doctrine ORM.

This is going to go a little wrong as soon as somebody trys to:

$qb = $myRepo->createQueryBuilder();
$qb->where(...); // and so delete the "andWhere('phpcr:class = FQN);

So people will need to remember to use "andWhere"