public function set($value) { // TODO: There must be a nicer way?? if ((int) $value . '' != $value) { return parent::set(strtotime($value)); } else { return parent::set($value); } }
public function set($value) { if (parent::set($value)) { unset($this->relatedModel); } }