Override bundle entity mapping #7076
Labels
actionable
Clear and specific issues ready for anyone to take them.
Doctrine
hasPR
A Pull Request has already been submitted for this issue.
In the Entities & Entity Mapping section of How to Override any Part of a Bundle, the following is stated:
I believe this is not completely true. If the bundle is defining the mapping in configuration files, it is possible to override the files, and thus the mapping. There is one caveat though: all mapping configuration files of the bundle must be overridden, you can't override just one of them.
I just tried it with JMSPaymentCoreBundle and it does work. I copied all the mapping files into
app/Resources/config/JMSPaymentCoreBundle
and then set the following configuration:If I then alter something in one of the mapping files and run
bin/console doctrine:schema:update
, I can see my changes are there.Would it be useful to clarify this in the docs?
The text was updated successfully, but these errors were encountered: