#1210: Selected field with alias is not recognized
------------------------------+-------------------------------------------- -
Reporter: Max_Schreck | Owner: romanb
Type: defect | Status: closed
Priority: minor | Milestone: 0.11.1
Component: Query/Hydration | Version: 0.11
Resolution: wontfix | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
------------------------------+-------------------------------------------- -
Comment (by romanb):
You are right, thats mainly a problem of the current DQL parser which is
far from accurate when it comes to accepting/declining certain input.
If you're interested in what is on the agenda for hydration & DQL in 2.0
this might interest you: http://trac.phpdoctrine.org/wiki/NewHydration
Although 2.0 is far away we plan to backport the scalar hydration modes to
1.0. But the special SCALAR() DQL function will most likely not be
backported.
So in 2.0 you will be able to do sth like this: select scalar(up.name)
up_name ... The resulting scalar value will not be put into any objects
however, as you can see in the link above.
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1210#comment:3>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper