ipub / doctrine-timestampable

用于自动更新实体上时间戳字段的属性。

v2.0.0 2024-01-05 09:57 UTC

This package is auto-updated.

Last update: 2024-09-05 11:29:30 UTC


README

Build Status Code coverage PHP Licence Downloads total Latest stable PHPStan

Timestampable属性将自动更新Nette框架(http://nette.org/)和Doctrine 2(http://www.doctrine-project.org/)中实体上的日期字段。

安装

安装 ipub/doctrine-timestampable 的最佳方法是使用 Composer

composer require ipub/doctrine-timestampable

之后,您需要在config.neon中注册扩展。

extensions:
    doctrineTimestampable: IPub\DoctrineTimestampable\DI\DoctrineTimestampableExtension

文档

了解如何在 文档 中注册和使用timestampable属性。

主页 https://www.ipublikuj.eu 和仓库 http://github.com/iPublikuj/doctrine-timestampable.