mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[RFC] Make UnitOfWork and BasicEntityPersister more override-friendly #6875
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 @outtersg on GitHub (Nov 14, 2021).
Feature Request
Summary
Ease BasicEntityPersister overriding by:
The end goal being to plug optimized (driver- or application-specific) EntityPersisters to handle some or all entities of a project.
Details
Point 2. is specifically to allow easy multidelete (letting the EntityPersister group deletes as
DELETE FROM table WHERE id IN (?, ?, ?, ?, ?)).(which requires a driver-specific implementation, e.g. array_chunk for Oracle and its 1000-items limit in
INs)And it would make executeDeletions() symetric to executeInserts() (where UOW calls EntityPersister's one, letting EP optimize by grouping or doing individual calls)
Point 1. would allow two plugging modes: