Can you make a practical example of what you need? Doctrine2 only supports
entities and associations in the FROM clause
On May 4, 2015 08:27, "Robin" <[email protected]> wrote:

> Hi,
>
> I was wondering if it is somehow possible to write a dql query like:
>
> SELECT e
> FROM Entity e, function(e.field) e2
>
> The documentation
> <http://doctrine-orm.readthedocs.org/en/latest/reference/dql-doctrine-query-language.html#dql-select-clause>
>  states
> that:
>
>    - The FROM keyword is always followed by a *fully-qualified class name*
>    which in turn is followed by an identification variable or alias for that
>    class name. This class designates a root of our query from which we can
>    navigate further via joins (explained later) and path expressions.
>
>
> Therefore, it seems that it would not be possible. Is there any chance to
> accomplish this? I would be fine if it would work after a JOIN expression
> as well.
>
> Best,
> Robin
>
> --
> 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.
>

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