/** * {@inheritdoc} */ public function __construct($underscoreSeparatedKeys = false) { parent::__construct($underscoreSeparatedKeys); $this->addStrategy('_id', new MongoIdStrategy()); }
/** * {@inheritdoc} */ public function __construct($underscoreSeparatedKeys = true) { parent::__construct($underscoreSeparatedKeys); // Strategies $this->addStrategy('error', new HasOneStrategy(new ErrorObject(), true)); }
/** * {@inheritdoc} */ public function __construct($underscoreSeparatedKeys = true) { parent::__construct($underscoreSeparatedKeys); $this->addStrategy('date_created', new DateTimeStrategy()); $this->addStrategy('date_modified', new DateTimeStrategy()); }