protected function _delete(VO $vo) { if ($vo->getId()) { $id = (int) $vo->getId(); if (array_key_exists($id, $this->objects)) { unset($this->objects[$id]); } } return true; }
protected function _delete(VO $vo) { if (!$this->memcached) { return true; } return $this->memcached->delete($this->getMemcachedCompleteKey($vo->getId())); }
/** * Delete the object from database * @param \Berthe\VO $object the object to insert * @return boolean */ public function delete(\Berthe\VO $object) { return $this->deleteById($object->getId()); }
/** * @param VO $vo * @return boolean success */ public final function save(VO $vo) { $ret = null; if ($vo->getId()) { $ret = $this->_update($vo); } else { $ret = $this->_insert($vo); } if ($ret !== false) { $ret = true; } return $ret; }