mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
JoinedSubclassPersister::delete does not pass $types argument to Connection::delete #5227
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 @fred-jan on GitHub (Aug 23, 2016).
Originally assigned to: @lcobucci on GitHub.
My entity uses both class table inheritance and a custom id type (
uuid_binarytype provided by theramsey/uuid-doctrinepackage). Simplified example:When I attempt to delete such an entity using the
EntityManager, theJoinedSubclassPersisterclass is leveraged internally to perform the deletion and callsConnection::deletewithout passing along any field-mapping information as$typesargument. This results in the following query being executed:For my specific platform (which supports FK's) I've made a temporary fix by copying the
$typesassignment code from theBasicEntityPersisterclass, which looks like this:@lcobucci commented on GitHub (Sep 20, 2019):
Handled by https://github.com/doctrine/orm/pull/7322