public function commit()
 {
     $this->inTransaction = false;
     parent::commit();
 }