Download the PHP package joschi127/doctrine-entity-override-bundle without Composer
On this page you can find all versions of the php package joschi127/doctrine-entity-override-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download joschi127/doctrine-entity-override-bundle
More information about joschi127/doctrine-entity-override-bundle
Files in joschi127/doctrine-entity-override-bundle
Download joschi127/doctrine-entity-override-bundle
More information about joschi127/doctrine-entity-override-bundle
Files in joschi127/doctrine-entity-override-bundle
Vendor joschi127
Package doctrine-entity-override-bundle
Short Description Symfony bundle which allows to override entities by using inheritance
License MIT
Homepage https://github.com/joschi127/doctrine-entity-override-bundle
Package doctrine-entity-override-bundle
Short Description Symfony bundle which allows to override entities by using inheritance
License MIT
Homepage https://github.com/joschi127/doctrine-entity-override-bundle
Please rate this library. Is it a good library?
Informations about the package doctrine-entity-override-bundle
doctrine-entity-override-bundle
Symfony bundle which allows to override entities by using inheritance
Configuration
Add to app/config/config.yml
:
# override entities
joschi127_doctrine_entity_override:
overridden_entities:
# Keep in mind: if you are using multi level inheritance, you have to use the top most super class on the
# left side
OriginalBundle\Entity\Example: CustomizedBundle\Entity\Example
Hints
- If you are using multi level inheritance, you have to use the top most super class on the left side in the
configuration under
overridden_entities
. - If you are using multi level inheritance, the properties of the class in between have to be protected, otherwise you
will get a
ReflectionException
sayingProperty ...::$propertyName does not exist
. - It is recommended that the original entity is defined as
MappedSuperclass
. You can do so if it is your own code. If you want to extend other, third party entities, this should work in most cases. But parts of the mapping will be regenerated internally by theLoadORMMetadataSubscriber
of this bundle and at least some doctrine mapping features might not be supported and you might run into issues. - Using
@ORM\AttributeOverrides
is not supported, instead just override the property in your customized entity class and add the ORM mapping for the property in your customized entity as usual. This bundle will then unload the original mapping configuration and only use your customized mapping. - Have a look at the Tests/Functional/src folder for some example code.
All versions of doctrine-entity-override-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
symfony/framework-bundle Version ^2.7.12|^3.0.6|^4.0
doctrine/orm Version ^2.4.8
doctrine/doctrine-bundle Version ^1.6.2
symfony/framework-bundle Version ^2.7.12|^3.0.6|^4.0
doctrine/orm Version ^2.4.8
doctrine/doctrine-bundle Version ^1.6.2
The package joschi127/doctrine-entity-override-bundle contains the following files
Loading the files please wait ....