/** * Starts db transaction * @return Model $this */ public function startTransaction() { if (!$this->inTransaction() && !$this->_is_inner_save) { $this->getMasterDB()->StartTrans(); \Sky\Memcache::begin(); } return $this; }