Пример #1
0
 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);
     }
 }
Пример #2
0
 public function set($value)
 {
     if (parent::set($value)) {
         unset($this->relatedModel);
     }
 }