mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
Remove of joined entities not possible for custom id types #5285
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 @hcomnetworkers on GitHub (Oct 7, 2016).
Originally assigned to: @lcobucci on GitHub.
The delete-calls on the connection in BasicEntityPersister::deleteJoinTableRecords do not include the types for the fields:
https://github.com/doctrine/doctrine2/blob/cd11723e6310b5973f50e7d9819c58916721d290/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php#L540
A joined entity with a custom id type can therefor not be removed because the Type::convertToDatabaseValue method is never called to transform the id into its database value.
@lcobucci commented on GitHub (Sep 20, 2019):
Already reported in https://github.com/doctrine/orm/issues/5988