mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3042: select issue field names with numbers #3779
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 21, 2014).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user rev83:
will create this sql:
as you see, it will create co.firma2 as firma23 and c3_.firma AS firma23,
now when you do:
when i change the order of the select , it will work
@doctrinebot commented on GitHub (Mar 21, 2014):
@doctrinebot commented on GitHub (Mar 21, 2014):
Comment created by @ocramius:
[~rev83] can you reduce the example to only the fields that are affected? Does this affect also latest ORM?
@doctrinebot commented on GitHub (Mar 21, 2014):
Comment created by rev83:
Marco, the Problem only exists when you select like my example
as you see "firma2" is on the fourth place so it´s selected as "firma23", "m.firma" is on place 24, so it´s also selected as "firma23" (m.firma as mutterv)
@doctrinebot commented on GitHub (Mar 21, 2014):
Comment created by @ocramius:
[~rev83] ah, I see it now. This probably requires a change in how the DQL is generated by prefixing numerical indexes with something like an
_.@doctrinebot commented on GitHub (Mar 21, 2014):
Comment created by @ocramius:
[~rev83] I provided a fix at https://github.com/doctrine/doctrine2/pull/985 - can you try it?
@doctrinebot commented on GitHub (Mar 24, 2014):
Comment created by rev83:
Yeah, this works.
@doctrinebot commented on GitHub (Apr 4, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-985] was closed:
https://github.com/doctrine/doctrine2/pull/985
@doctrinebot commented on GitHub (Apr 4, 2014):
Comment created by @ocramius:
Merged:
bfb66f1d85@doctrinebot commented on GitHub (Apr 4, 2014):
Issue was closed with resolution "Fixed"