disparity/fixrel

Two way relationship fixer for Doctrine ORM

0.1.0 2017-12-09 17:36 UTC

This package is auto-updated.

Last update: 2024-12-06 10:00:17 UTC


README

Two way relationship fixer for Doctrine ORM entities

Build Status codecov SymfonyInsight

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.