mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1171: inheritance not Collecting Data #1470
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 @doctrinebot on GitHub (May 26, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jfernandez:
I have created an inheritance structure as described in the Doctrine documentation using a Person/Employee models.
When creating and saving a new Employee (a subclass), I get a "column title can not be null" error. I´ve noticed that values don't get assigned to the class properties correctly (see attachment and var_dump results of the employee object).
This is not an issue if I instantiate the Person class by itself.
Thanks
@doctrinebot commented on GitHub (Jun 5, 2011):
Comment created by @beberlei:
You set the properties to "private", which leads to this problem. With protected your magic **set() method will work correctly.
@doctrinebot commented on GitHub (Jun 5, 2011):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/3b080e8f2b41e6d11048