Google Groups

Re: [doctrine-user] Re: Set ID of array


Marco Pivetta May 2, 2012 11:30 AM
Posted in group: doctrine-user
Hey, I just wanted to correct myself :) You can use a feature I was not aware of, which is `INDEX BY` in DQL:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#using-index-by

Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 2 May 2012 03:35, Marco Pivetta <ocra...@gmail.com> wrote:
This would happen anyway inside the lib if there was such a functionality :)


Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 2 May 2012 01:02, Augusto Ximenes <augusto...@gmail.com> wrote:
Do you know another way? If table has a lot of rows, this is not a good idea. Does Doctrine have something like indexby?

--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To post to this group, send email to doctri...@googlegroups.com.
To unsubscribe from this group, send email to doctrine-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/doctrine-user?hl=en.