コード例 #1
0
ファイル: BaseModel.php プロジェクト: riquellopes/hackathon-1
 /**
  * Routes delete operations to "master" connection then
  * switches back to the "slave" db connection.
  */
 public function delete()
 {
     $slave_db = $this->switch_connection($this->master_db);
     parent::delete();
     $this->switch_connection($slave_db);
 }