I have a relationship between 2 Orders and Users tables from the field user_id
and id
respectively.
I make this query:
$dql="SELECT u, o
FROM BackendBundle:Orders o
JOIN o.users u";
$query=$em->createQuery($dql);
And this is the error that shows me:
[Semantical Error] line 0, col 68 near 'u': Error: Class BackendBundle \ Entity \ Orders has no association named users
And I do not know how I can correct this error.