asiviero/doctrine-timestamp
最新稳定版本:v0.1.2
Composer 安装命令:
composer require asiviero/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
{
"require": {
"asiviero/doctrine-timestamp": "dev-master"
}
}
Then, when bootstraping your doctrine connection :
Type::addType('timestamp', 'DoctrineTimestamp\DBAL\Types\Timestamp'); $conn->getDatabasePlatform()->registerDoctrineTypeMapping('Timestamp', 'timestamp');
统计信息
- 总下载量: 1.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-15