marktopper/doctrine-dbal-timestamp-type
Add the timestamp type for Doctrine/DBAL
866,606
49
| Install | |
|---|---|
composer require marktopper/doctrine-dbal-timestamp-type |
|
| Latest Version: | v1.1.0 |
| PHP: | >=5.6.4 |
| License: | MIT |
| Last Updated: | Mar 6, 2024 |
| Links: | GitHub · Packagist |
Maintainer: marktopper
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,
Related Packages
beberlei/doctrineextensions
A set of extensions to Doctrine 2 that add support for additional query function...
86,090,341
2,102
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.1.0 | >=5.6.4 | MIT | |
| v1.0.3 | >=5.6.4 | MIT | |
| v1.0.2 | >=5.6.4 | MIT | |
| v1.0.1 | >=5.6.4 | MIT | |
| v1.0.0 | >=5.6.4 | MIT |