disparity / fixrel
Two way relationship fixer for Doctrine ORM
Requires
- php: >=7.0
- doctrine/orm: ~2.4,>=2.4.5
Requires (Dev)
- phpunit/phpunit: ^6.0
- symfony/phpunit-bridge: ^4.1@dev
This package is auto-updated.
Last update: 2024-11-06 09:49:06 UTC
README
Two way relationship fixer for Doctrine ORM entities
Description
Associations between entities are represented just like in regular object-oriented PHP code using references to other objects or collections of objects.
Association is a two-way relationship between objects, so changing the relationship on only one side breaks the consistency of the data.
This requires that you choose the right side of the change (because the doctrine will only check the owning side of an association for changes).
This library makes it easy to make changes in the relations of objects, automatically changing relationships in related objects. This makes it possible to make changes on either side of the association; since owner-side will contain a reference to the correct entity.
Documentation
Read full documentation.