Exemple #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);
     }
 }
Exemple #2
0
 public function set($value)
 {
     if (parent::set($value)) {
         unset($this->relatedModel);
     }
 }