mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-705: Using a named parameter in multiple places doesn't work #873
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 (Jul 20, 2010).
Jira issue originally created by user jakajancar:
The following won't work:
The following will, but seems needlessly complex:
I would expect a named parameter to behave like a constant. I should be able to define it once, and then use it multiple times.
Also, I would like to be able to set the same parameter multiple times, so if multiple pieces of code set :currentUser that isn't a problem, unless they're different (in which case I'd expect an error like ":currentUser bound to two different values").
@doctrinebot commented on GitHub (Jul 26, 2010):
Comment created by @guilhermeblanco:
The Doctrine behavios is expected and correct.
Each parameter is atomic and can only be used once.
There is not way to implement it other way (AFAIK), but if you come with a patch... who knows! =)
Regards,
@doctrinebot commented on GitHub (Jul 26, 2010):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (May 9, 2012):
Comment created by holtkamp:
Seems to be resolved by this fix: http://www.doctrine-project.org/jira/browse/DDC-1040