DDC-229: Changeset 6982 breakage #285

Closed
opened 2026-01-22 12:33:30 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 27, 2009).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user romanb:

http://trac.doctrine-project.org/changeset/6982/

The new processDeferredExpressionsStack does not look good. It processes all expressions. Previously, each (sub)query had its own stack.

Now, when you do sth like this: "select u, (select max(o.id) from Other o) maxId from User u" you will trigger all validations at the end of the subquery. 'u' will be validated but is still undefined.

Please explain why the old behavior with one stack for each (sub)query was not preserved.

Also, things like

$method = '_validate' . $item['method']; 

lead to very fragile (bad) code.

Originally created by @doctrinebot on GitHub (Dec 27, 2009). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user romanb: http://trac.doctrine-project.org/changeset/6982/ The new processDeferredExpressionsStack does not look good. It processes **all** expressions. Previously, each (sub)query had its own stack. Now, when you do sth like this: "select u, (select max(o.id) from Other o) maxId from User u" you will trigger all validations at the end of the subquery. 'u' will be validated but is still undefined. Please explain why the old behavior with one stack for each (sub)query was not preserved. Also, things like ``` $method = '_validate' . $item['method']; ``` lead to very fragile (bad) code.
admin added the Bug label 2026-01-22 12:33:30 +01:00
admin closed this issue 2026-01-22 12:33:30 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 27, 2009):

Comment created by @guilhermeblanco:

Just a little mis-comprehension of the new way I've build expressions validations.
Resolving ticket.

@doctrinebot commented on GitHub (Dec 27, 2009): Comment created by @guilhermeblanco: Just a little mis-comprehension of the new way I've build expressions validations. Resolving ticket.
Author
Owner

@doctrinebot commented on GitHub (Dec 27, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 27, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#285