library doctrine-timestamp
A library adding the timestamp type to Doctrine ORM
mmerian/doctrine-timestamp
A library adding the timestamp type to Doctrine ORM
- Saturday, February 24, 2018
- by mmerian
- Repository
- 2 Watchers
- 9 Stars
- 11,522 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 5 Forks
- 4 Open issues
- 1 Versions
- 12 % Grown
doctrine-timestamp
Implementation of a timestamp type for the Doctrine DBAL, (*1)
This library maps the DateTime
PHP class to a Unix timestamp (integer) in the database., (*2)
Installation
Just add this to your composer.json, (*3)
{
"require": {
"mmerian/doctrine-timestamp": "dev-master"
}
}
Then, when bootstraping your doctrine connection :, (*4)
Type::addType('timestamp', 'DoctrineTimestamp\DBAL\Types\Timestamp');
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('Timestamp', 'timestamp');
dev-master
9999999-dev
A library adding the timestamp type to Doctrine ORM
Sources
Download
MIT
The Requires
by
Maxime Mérian
orm
doctrine
datetime
timestamp