darkwebdesign / doctrine-enhancement-pack
Doctrine增强包
v2.7.2
2023-11-08 10:32 UTC
Requires
- php: ^7.1
- doctrine/event-manager: ^1.1
- doctrine/orm: 2.7.*
- doctrine/persistence: ^1.3.3 || ^2.0
Requires (Dev)
- darkwebdesign/doctrine-unit-testing: 2.7.*
- doctrine/data-fixtures: ^1.1
- phpunit/phpunit: ^7.5
Replaces
README
Doctrine增强包是一组Doctrine增强功能,您可以在您的Doctrine项目中使用。
有关更多信息,请参阅其文档。
功能
事件增强
- 在
pre-update
和post-update
生命周期事件中访问原始实体。 - 在
on-flush
和post-flush
事件中访问创建、更新(及其原始实体)和删除的实体。 - 在
on-flush
事件和pre-update
生命周期事件中修改实际实体(而不是通过"change set"数组)。 - 在
on-flush
事件中修改实体后自动重新计算"change set"。
通过Composer安装
composer require darkwebdesign/doctrine-enhancement-pack
composer install
许可证
Doctrine增强包采用MIT许可证 - 有关详细信息,请参阅LICENSE
文件。