mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-612: Query\Expr::substring() third parameter should be optional #748
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 (May 25, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @hobodave:
I'm not aware of a platform that requires all 3 arguments to SUBSTRING().
This seems to only affect queries from the QueryBuilder
The following DQL works fine:
Yet the following QueryBuilder expression:
results in:
If I make that argument optional, default null I get the following generated DQL and error: