Hi all,
I'm creating a custom rest service to retrieve some data from the system.
What i would like to do is to return a case list with some related entities fields, let's suppose for example that i want to return the case name and the related contact name:
This code just return the case name and not the contact name, am I doing something wrong?
Thank you
I'm creating a custom rest service to retrieve some data from the system.
What i would like to do is to return a case list with some related entities fields, let's suppose for example that i want to return the case name and the related contact name:
PHP Code:
$cases = $entityManager->getRepository('Case')
->select()
->select(['name', 'contact.name'])
->join("contact")
->find();
Thank you
Comment