コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct($underscoreSeparatedKeys = false)
 {
     parent::__construct($underscoreSeparatedKeys);
     $this->addStrategy('_id', new MongoIdStrategy());
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($underscoreSeparatedKeys = true)
 {
     parent::__construct($underscoreSeparatedKeys);
     // Strategies
     $this->addStrategy('error', new HasOneStrategy(new ErrorObject(), true));
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function __construct($underscoreSeparatedKeys = true)
 {
     parent::__construct($underscoreSeparatedKeys);
     $this->addStrategy('date_created', new DateTimeStrategy());
     $this->addStrategy('date_modified', new DateTimeStrategy());
 }