commit() public method

that had already been written to will be deleted.
public commit ( ) : boolean
return boolean
 /**
  * {@inheritdoc}
  */
 public function flush()
 {
     $result = $this->transaction->flush();
     $this->transaction->commit();
     return $result;
 }