public function beforeUpdate() { if (parent::beforeUpdate()) { return true; } return false; }
public function beforeUpdate() { if (parent::beforeUpdate()) { $this->updated = 'NOW():sql'; $this->user_id_updated = $this->model_uset_id; return true; } else { return false; } }
public function beforeUpdate() { if (parent::beforeUpdate()) { if (!$this->next_id) { $this->next_id = null; } return true; } return false; }
public function beforeUpdate() { if (parent::beforeUpdate()) { // This is the temporary decision because we didn't have a created field before if ($this->created == '0000-00-00 00:00:00') { $this->created = 'NOW():sql'; } return TRUE; } else { return false; } }
public function beforeUpdate() { if (!parent::beforeUpdate()) { return false; } $this->convertByMethod(); return true; }