I've got a problem with doctrine phpcr and the query builder. Is it possible to do a query on an attribute with ReferenceOne() ?
e.g :
/**
* @PHPCR\ReferenceOne(targetDocument="....\Program")
*/
private $program;
But when I'm trying to build a query on it :
$qb->where()->eq()->field('news.program')->literal($program->getId())->end();
I've got the following error
Cannot use association property "program" of class "...\News" as a dynamic operand.
Is there a way to do a query on this kind of attribute please ?