/** * make sure the cached dates array is reset when patient_unavailables is updated. * * @param string $name * @param mixed $value * * @return mixed|void */ public function __set($name, $value) { if ($name == 'patient_unavailables') { $this->_unavailable_dates = null; } parent::__set($name, $value); }