protected function parseDateValue($value) { // TODO consider merging these methods into single one at 2.1 return $this->parseDateValueFormat($value, $this->format); }
/** * @inheritdoc */ protected function parseDateValue($value) { if ($value instanceof \MongoDate) { return $value->sec; } return parent::parseDateValue($value); }