Doctrine2 中的行为特性可帮助处理 Blameable、Loggable、Sluggable、SoftDeletable、Uuidable、Timestampable、Translatable 和 Tree 行为
Doctrine2 中的行为特性可帮助处理 Blameable、Loggable、Sluggable、SoftDeletable、Uuidable、Timestampable、Translatable 和 Tree 行为
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 src暂无开放 Issues,或尚未同步最近议题。