DDC-3109: [Doctrine\ORM\Mapping\MappingException] Invalid field override named 'xxx' for class 'Entity\xxx' #3858

Open
opened 2026-01-22 14:29:14 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 30, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user 3x14159265:

Subclass should override association, but on generating entities, error:

[Doctrine\ORM\Mapping\MappingException]
Invalid field override named 'settings' for class 'Entity\Organization'.

is thrown. also, when updating schema, the assocations in the subclass are ignored (means are not present in the database).

Originally created by @doctrinebot on GitHub (Apr 30, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user 3x14159265: Subclass should override association, but on generating entities, error: [Doctrine\ORM\Mapping\MappingException] Invalid field override named 'settings' for class 'Entity\Organization'. is thrown. also, when updating schema, the assocations in the subclass are ignored (means are not present in the database).
admin added the Bug label 2026-01-22 14:29:14 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 30, 2014):

@doctrinebot commented on GitHub (Apr 30, 2014): - duplicates [DDC-2693: Attribute/association overrides should be ignored when generating entities](http://www.doctrine-project.org/jira/browse/DDC-2693)
Author
Owner

@doctrinebot commented on GitHub (May 23, 2014):

Comment created by alex-pex:

I think it is a duplicate of this bug : http://www.doctrine-project.org/jira/browse/DDC-2693

@doctrinebot commented on GitHub (May 23, 2014): Comment created by alex-pex: I think it is a duplicate of this bug : http://www.doctrine-project.org/jira/browse/[DDC-2693](http://www.doctrine-project.org/jira/browse/DDC-2693)
Author
Owner

@wakqasahmed commented on GitHub (Oct 9, 2016):

I am facing the same issue. Any updates on it?

@wakqasahmed commented on GitHub (Oct 9, 2016): I am facing the same issue. Any updates on it?
Author
Owner

@milan-jirasek commented on GitHub (Jan 29, 2018):

Still this error, is here some new solution?

@milan-jirasek commented on GitHub (Jan 29, 2018): Still this error, is here some new solution?
Author
Owner

@lcobucci commented on GitHub (Feb 22, 2018):

@Milan-Jirasek could you please send us a failing test case that reproduces that behaviour? It would help us a lot to identify and fix the issue you're describing.

Please use 2.6 as base and we'll port it to master when/if needed.

You can find examples on 388afb46d0/tests/Doctrine/Tests/ORM/Functional/Ticket

@lcobucci commented on GitHub (Feb 22, 2018): @Milan-Jirasek could you please send us a failing test case that reproduces that behaviour? It would help us a lot to identify and fix the issue you're describing. Please use `2.6` as base and we'll port it to `master` when/if needed. You can find examples on https://github.com/doctrine/doctrine2/tree/388afb46d0cb3ed0c51332e8df0de9e942c2690b/tests/Doctrine/Tests/ORM/Functional/Ticket
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3858