Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
This PHP library is a collection of traits and interfaces that add behaviors to Doctrine entities and repositories.
It currently handles:
composer require knplabs/doctrine-behaviorsAll you have to do is to define a Doctrine entity:
For some behaviors like tree, you can use repository traits:
import(DoctrineSetList::DOCTRINE_BEHAVIORS_20);
};Run Rector:
vendor/bin/rector process srcNo open issues yet, or sync has not completed.