return $this->_fetchItem($select, $path);
}
+ public function findByTitle($title, Syj_Model_Path $path) {
+ $select = $this->_select();
+ $select->where('title = ?', (string)$title);
+ return $this->_fetchItem($select, $path);
+ }
+
public function findByUrl($url, Syj_Model_Path $path) {
$select = $this->_select();
$select->where('id = ?', (int)$url)->orWhere('urlcomp = ?', (string)$url);
$path->id = $this->getDbTable()->insert($data);
} else {
$this->getDbTable()->update($data, array('id = ?' => $id));
+ $path->invalidateCache();
}
}