I've got the following query:
<?php
$em = $this->getDoctrine()->getManager();
$data['ps'] = $em->createQuery('SELECT s,ps FROM AppBundle:Sucursales s LEFT
JOIN AppBundle:ComprasProductosSucursales ps WITH s.id =
ps.sucursal')->getResult();
But I get a result like in the following image:
<https://lh3.googleusercontent.com/-Y0_1NLXdJMs/VQWgW39eSiI/AAAAAAAABPM/H6gHtGIaSCE/s1600/2015-03-15%2B08_16_42-La%2BPizzeria%2B7G%2B__.png>
I expected $data['ps'][1] to be part of $data['ps'][0], otherwise the
iteration of the array is going to be very weird.
It's possible to get the result of the joined table
AppBundle:ComprasProductosSucursales as columns of the AppBundle:Sucursales
data?
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.