[PR #9018] Allow params of function substring to also support an expression function #11317

Open
opened 2026-01-22 16:10:22 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9018

State: closed
Merged: No


This is something which should work:

 $qb->expr()->substring(
                    $qb->expr()->literal($var),
                    1,
                    $qb->expr()->length($qb->expr()->concat('cc', 'ndc'))
                )
**Original Pull Request:** https://github.com/doctrine/orm/pull/9018 **State:** closed **Merged:** No --- This is something which should work: ``` $qb->expr()->substring( $qb->expr()->literal($var), 1, $qb->expr()->length($qb->expr()->concat('cc', 'ndc')) ) ```
admin added the pull-request label 2026-01-22 16:10:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11317