mirror of
https://github.com/doctrine/orm.git
synced 2026-04-30 01:43:20 +02:00
Class Table Inheritance remove entity throws unexpected typed property error on PHP 7.4 #6432
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 @bertoost on GitHub (Mar 24, 2020).
Bug Report
Summary
I am using the Class Table inheritance as described here; https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/inheritance-mapping.html#class-table-inheritance
but when removing an entity, a typed property error is thrown.
Current behavior
When I create a new entity, this is working as expected. The records in both tables are created and linked to eachother.
But when I want to remove a sub-entity, it throws me an error;
Expected behavior
I expect both records (in the main and sub-table) are removed like when it's created.
Classes