Say I have two entities in Doctrine2 that are related to each other, Models\\User and Models\\Comment. If I do this in Doctrine 2.0.0...
Query by relationship is allowed, but you have to pass the Identifier in there. Query by object is not yet supported and will only make it into 2.1.
getRepository('Models\Comment') ->findBy(array('user' => $user->getId(), 'public' => true));