public function save(Doctrine_Connection $conn = null) { // ... $conn = $conn ? $conn : $this->getTable()->getConnection(); $conn->beginTransaction(); try { $ret = parent::save($conn); $this->updateLuceneIndex(); $conn->commit(); return $ret; } catch (Exception $e) { $conn->rollBack(); throw $e; } }
Monday, March 15, 2010
cara dapetin connection buat symfony doctrine
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment