Hello how can i do to join an entity to a specific tag in a doctrine query builder?
I tried to do this
$qb->select('s')
->from('MyBundle:Site', 's')
->leftJoin(
'MyBundle:Tagging', 't',
\Doctrine\ORM\Query\Expr\Join::WITH, 't.resource_id = s.id'
)
but I get an error message => MyBundle\Entity\Tagging has no field or association named resource_id.
Someone have any idea?
Thank you in advance.
Hello how can i do to join an entity to a specific tag in a doctrine query builder?
I tried to do this
$qb->select('s')
->from('MyBundle:Site', 's')
->leftJoin(
'MyBundle:Tagging', 't',
\Doctrine\ORM\Query\Expr\Join::WITH, 't.resource_id = s.id'
)
but I get an error message => MyBundle\Entity\Tagging has no field or association named resource_id.
Someone have any idea?
Thank you in advance.