[PR #1054] SQLFilters enahancements #9099

Closed
opened 2026-01-22 16:03:11 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


SQL filters in Doctrine are a bit too limited for my taste.
This pull request makes the current connection available inside sql filter classes.
The connection is needed to quote identifiers or values and generate sql statements for the current database. (sample use-case https://github.com/Atlantic18/DoctrineExtensions/blob/master/lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php)
Currently you can access the connection only through reflection which let's face it - is a hack.

I've also made the class depend on EntityManagerInterface instead of EntityManager.

There's a test for the new method.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1054 **State:** closed **Merged:** No --- SQL filters in Doctrine are a bit too limited for my taste. This pull request makes the current connection available inside sql filter classes. The connection is needed to quote identifiers or values and generate sql statements for the current database. (sample use-case https://github.com/Atlantic18/DoctrineExtensions/blob/master/lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php) Currently you can access the connection only through reflection which let's face it - is a hack. I've also made the class depend on EntityManagerInterface instead of EntityManager. There's a test for the new method.
admin added the pull-request label 2026-01-22 16:03:11 +01:00
admin closed this issue 2026-01-22 16:03:11 +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#9099