PHP code example of litipk / doctrine-mongodb-jiffy
1. Go to this page and download the library: Download litipk/doctrine-mongodb-jiffy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
litipk / doctrine-mongodb-jiffy example snippets
Type::registerType(
'UniversalTimestamp',
'Litipk\Jiffy\Doctrine\ODM\MongoDB\UniversalTimestampType'
);
use Litipk\Jiffy\Doctrine\ODM\MongoDB\UniversalTimestampField;
class OurDocument
{
/**
* @UniversalTimestampField()
* @var UniversalTimestamp
*/
private $creationDate;
// [...]
}