mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
AssocationOverride not creating ManyToOne column #5437
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 @ricohumme on GitHub (Feb 28, 2017).
Hi,
I noticed that when extending an entity with a base class carrying a ManyToOne relation, this relation is not created as a column in the database.
Current doctrine orm version I'm using is: v2.5.6
and for the subclass the following code:
I have also tried adding the property $product to the sub class, but this doesn't do anything more than in current state. Same goes for omitting the AssocationOverrides. Same result.
Now, when I run doctrine:schema:update, the following query is executed on the database:
When I look at the column structure, the table ProductDigi has an id and product_id column whereas the ProductDigiSub table only has the id column
Can anyone else confirm this issue?