[PR #7979] Private is not necessary #10746

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

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

State: closed
Merged: No


There is no reason for the EntityManager to not be accessible within filters. It causes extension writers to do code gymnastics to get the EntityManager.

Example:
https://github.com/Atlantic18/DoctrineExtensions/blob/master/src/SoftDeleteable/Filter/SoftDeleteableFilter.php

**Original Pull Request:** https://github.com/doctrine/orm/pull/7979 **State:** closed **Merged:** No --- There is no reason for the EntityManager to not be accessible within filters. It causes extension writers to do code gymnastics to get the EntityManager. Example: https://github.com/Atlantic18/DoctrineExtensions/blob/master/src/SoftDeleteable/Filter/SoftDeleteableFilter.php
admin added the pull-request label 2026-01-22 16:08:33 +01:00
admin closed this issue 2026-01-22 16:08:34 +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#10746