/** * {@inheritdoc} */ public function afterFind() { parent::afterFind(); //We aren't really interested in the microseconds and it breaks the validation on edit $this->time = date_create_from_format('H:i:s', $this->time)->format('H:i'); }
/** * {@inheritdoc} */ public function afterFind() { parent::afterFind(); //We aren't really interested in the microseconds and it breaks the validation on edit $this->time = date_create_from_format('H:i:s', $this->time)->format('H:i'); }