I have not tried, but I think something like enumerating the fields you want to have in the query: u.id, u.clientId, u.orderId, u.productId, c.optVar1
But: you are using a complete ORM, with which it is possible to build a good domain model, as a simple relational database entrance; probably easier to do and faster when not using Doctrine at all: just go to your database and stick to SQL... If you optimally want to use Doctrine, you'd better spend time on building your model and eventually worry about queries later, if necessary. It is all up to you,none of my business and I won't waste time on this unasked advice further, but to me it all looks a bit nonsensical. Just my 2 cents. On Friday, 14 February 2014 19:52:40 UTC+1, Parsifal wrote: > > Is there a trick that I get that array just as one array with elements > instead of sub-arrays? > I mean instead of this: > Array ( > [0] => Array ( > [0] => Array( > [id] => 1 > [clientId] => 1 > [orderId] => 3 > [productId] => 1 > ) > [optVar1] => foo > ) > ) > I get something like this: > Array ( > [0] => Array ( > [0] => Array( > [id] => 1 > [clientId] => 1 > [orderId] => 3 > [productId] => 1 > [optVar1] => foo > ) > ) > ) > Is it possible? > -- 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/groups/opt_out.
