marktopper/doctrine-dbal-timestamp-type
最新稳定版本:v1.1.0
Composer 安装命令:
composer require marktopper/doctrine-dbal-timestamp-type
包简介
Add the timestamp type for Doctrine/DBAL
README 文档
README
Since Doctrine/DBAL does not support the MySQL Timestamp type, you might want to add it on your own using this package.
Why using this?
According to this issue, Doctrine/DBAL does not support MySQL-specific database types like this one. Therefor we must add it ourself.
Installation
composer require marktopper/doctrine-dbal-timestamp-type
Then add the type to Doctrine\DBAL:
\Doctrine\DBAL\Types\Type::addType('timestamp', 'MarkTopper\DoctrineDBALTimestampType\TimestampType');
Laravel 5
You can use the Laravel Provider to ensure that the type is added to Doctrine\DBAL by adding the following to providers:
MarkTopper\DoctrineDBALTimestampType\Laravel5ServiceProvider::class,
统计信息
- 总下载量: 788.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 49
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04