mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Exception when inserting a joined subclass #6302
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 @andrews05 on GitHub (Sep 22, 2019).
Bug Report
Summary
When persisting a new entity of a joined subclass, an exception will be thrown if the subclass has defined any properties that are not columns.
Current behavior
The following exception will be thrown:
Call to undefined method Doctrine\ORM\Mapping\TransientMetadata::getColumnName() in Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php on line 468How to reproduce
Expected behavior
Successful insert with no exception.
@SenseException commented on GitHub (Sep 23, 2019):
Thank you for reporting this issue. Can you please create a PR with a failing test? The described behavior differs from the 2.x versions and afaik isn't supposed to break.
@andrews05 commented on GitHub (Sep 24, 2019):
@SenseException I've submitted a PR with a test case and possible fix.