2014-10-07 16:33 GMT+02:00 Thomas Baumann <[email protected]>:

> Hi there,
>
> We would like to retrieve both, 'u' and 't' in the result set. But we only
> get u, with a partially filled PersistenceCollection of 'tokens'.
>
> Given is the following DQL:
>
> SELECT u, t FROM MyNamespace\ApplicationBundle\Entity\User u INNER JOIN 
> u.tokens
> t WHERE t.hash = :tokenHash
>
> How to get a result that looks as follows:
>
> $result = [
>     [ u, t ],
>     ..
> ]
>
> Quick help is highly appreciated ;-)
>

You should be able to get the tokens via User::getTokens() already, right?


>
> cheers,
> Thomas
>
> --
> 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.
>



-- 
github.com/KingCrunch

-- 
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.

Reply via email to