DDC-1171: inheritance not Collecting Data #1470

Closed
opened 2026-01-22 13:15:25 +01:00 by admin · 3 comments
Owner

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

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
admin added the Bug label 2026-01-22 13:15:25 +01:00
admin closed this issue 2026-01-22 13:15:27 +01:00
Author
Owner

@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): Comment created by @beberlei: You set the properties to "private", which leads to this problem. With protected your magic **set() method will work correctly.
Author
Owner

@doctrinebot commented on GitHub (Jun 5, 2011):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Jun 5, 2011): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/3b080e8f2b41e6d11048

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/3b080e8f2b41e6d11048 - [10995_inheritance_bug.txt](https://gist.github.com/3b080e8f2b41e6d11048#file-10995_inheritance_bug-txt)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1470