Hi!
I was created a many-to-many relation between two entities. Now, I want to know how can I get the relational model of one of the entities. For example,
we have: Accounts and Concepts this relation is many-to-many. Now, I have account1 with id 11 and I want to get with entitymanager the related Concept.
With:
$result = $entityManager->getRepository('Account')->findRelated($accountId, 'concept'); these not work. How can I do that? Thanks!
I was created a many-to-many relation between two entities. Now, I want to know how can I get the relational model of one of the entities. For example,
we have: Accounts and Concepts this relation is many-to-many. Now, I have account1 with id 11 and I want to get with entitymanager the related Concept.
With:
$result = $entityManager->getRepository('Account')->findRelated($accountId, 'concept'); these not work. How can I do that? Thanks!
Comment