moln/doctrine-timestamp
最新稳定版本:1.1.0
Composer 安装命令:
composer require moln/doctrine-timestamp
包简介
A library adding the timestamp type to Doctrine ORM
README 文档
README
Implementation of a timestamp type for the Doctrine DBAL
This library maps the DateTime PHP class to a Unix timestamp (integer) in the database.
Installation
Just add this to your composer.json
composer require moln/doctrine-timestamp
Then, when bootstraping your doctrine connection :
Type::addType('timestamp', 'DoctrineTimestamp\DBAL\Types\Timestamp'); $conn->getDatabasePlatform()->registerDoctrineTypeMapping('Timestamp', 'timestamp');
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-15