public function save($cacheFlag = null) { if ($this->modified) { $this->modified_time = strtotime($this->modified); } return parent::save($cacheFlag); }
public function save($cacheFlag = null) { if (!$this->cursor) { $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Attempt to save object without cursor: ' . print_r($this->toArray('', true), 1)); return false; } return parent::save($cacheFlag); }