public function beginTransaction()
    {
        $return = $this->repository->beginTransaction();

        if ($this->signalDispatcher instanceof TransactionHandler) {
            $this->signalDispatcher->beginTransaction();
        }

        return $return;
    }
public function beginTransaction()
    {
        $return = $this->repository->beginTransaction();

        if ($this->signalDispatcher instanceof TransactionHandler) {
            $this->signalDispatcher->beginTransaction();
        }

        return $return;
    }
public function beginTransaction ( ) { $ return = $ this -> repository -> beginTransaction ( ) ; if ( $ this -> signalDispatcher instanceof TransactionHandler ) { $ this -> signalDispatcher -> beginTransaction ( ) ; } return $ return ; }
Begin transaction.

Begins an transaction, make sure you'll call commit or rollback when done,
otherwise work will be lost.
Begin transaction .