dev-master
9999999-dev http://github.com/kamilkrzywda/php-symfony-dateintervalA Symfony bundle for the DateInterval library for Doctrine.
MIT
The Requires
The Development Requires
date interval
Wallogit.com
2017 © Pedro Peláez
A Symfony bundle for the DateInterval library for Doctrine.
A Symfony bundle for the DateInterval library for Doctrine., (*2)
The bundle will automatically, (*3)
dateinterval Doctrine mapping typeDATE_INTERVAL DQL functionto the default entity manager (doctrine.orm.entity_manager)., (*4)
Add it to your list of Composer dependencies:, (*5)
$ composer require herrera-io/dateinterval-bundle=1.*
Add it to your app/AppKernel.php file:, (*6)
<?php
public function registerBundles()
{
$bundles = array(
// ... snip ...
new Herrera\Symfony\DateInterval\DateIntervalBundle()
// ... snip ...
);
}
<?php
class MyEntity
{
/**
* @ORM\Column(type="dateinterval")
*/
private $interval;
}
SELECT j FROM Jobs j WHERE j.interval < DATE_INTERVAL('PT1H')
A Symfony bundle for the DateInterval library for Doctrine.
MIT
date interval