When I use this:
SELECT x, y FROM Entities\blah x JOIN x.info y
I get the array below that is fine and could foreach.
Array
(
[0] => Array
(
[id] => 1
[clientId] => 1
[orderId] => 3
[productId] => 1
[info] => Array
(
[id] => 1
[productId] => 1
[optVar1] => foo
)
)
)
but if I use:
SELECT x, y.optVar1 FROM Entities\blah x JOIN x.info y
I get the array below that is odd and cannot foreach.
Array
(
[0] => Array
(
[0] => Array
(
[id] => 1
[clientId] => 1
[orderId] => 3
[productId] => 1
)
[optVar1] => foo
)
)
Not sure if intentionally I am getting a correct array like this or I
am doing something wrong? what should I do If I want to just use
y.optVar1 but to get an array like this first one?
--
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.