marktopper/doctrine-dbal-timestamp-type
Fork: 9 Star: 48 (更新于 2024-10-24 01:44:49)
license: MIT
Language: PHP .
Add the timestamp type for Doctrine/DBAL
最后发布版本: v1.1.0 ( 2023-02-04 03:41:52)
Doctrine/DBAL Timestamp Type
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,
最近版本更新:(数据更新于 2024-10-12 12:27:05)
2023-02-04 03:41:52 v1.1.0
2020-05-04 18:12:37 v1.0.3
2018-11-11 17:54:53 v1.0.2
2016-11-28 20:43:25 v1.0.1
2016-11-25 00:26:07 v1.0.0
marktopper/doctrine-dbal-timestamp-type同语言 PHP最近更新仓库
2024-11-01 18:37:36 schmittjoh/JMSSerializerBundle
2024-10-31 21:37:53 filamentphp/filament
2024-10-28 00:16:41 symfony/var-dumper
2024-10-28 00:11:41 symfony/symfony
2024-10-11 23:44:26 coollabsio/coolify
2024-10-11 03:27:29 odan/slim4-skeleton