| Package Data | |
|---|---|
| Maintainer Username: | marktopper |
| Package Create Date: | 2016-11-24 |
| Package Last Update: | 2024-03-06 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:23:01 |
| Package Statistics | |
|---|---|
| Total Downloads: | 775,850 |
| Monthly Downloads: | 6,332 |
| Daily Downloads: | 248 |
| Total Stars: | 49 |
| Total Watchers: | 1 |
| Total Forks: | 10 |
| Total Open Issues: | 2 |
Since Doctrine/DBAL does not support the MySQL Timestamp type, you might want to add it on your own using this package.
According to this issue, Doctrine/DBAL does not support MySQL-specific database types like this one. Therefor we must add it ourself.
composer require marktopper/doctrine-dbal-timestamp-type
Then add the type to Doctrine\DBAL:
\Doctrine\DBAL\Types\Type::addType('timestamp', 'MarkTopper\DoctrineDBALTimestampType\TimestampType');
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,