public function getCurrentTransaction()
    {
        if (false === $this->session->has('transaction-id')) {
            throw new AccessDeniedHttpException();
        }

        return $this->manager->getRepository('EcommerceBundle:Transaction')->find($this->session->get('transaction-id'));
    }
public function getCurrentTransaction()
    {
        if (false === $this->session->has('transaction-id')) {
            throw new AccessDeniedHttpException();
        }

        return $this->manager->getRepository('EcommerceBundle:Transaction')->find($this->session->get('transaction-id'));
    }
public function getCurrentTransaction ( ) { if ( false === $ this -> session -> has ( 'transaction-id' ) ) { throw new AccessDeniedHttpException ( ) ; } return $ this -> manager -> getRepository ( 'EcommerceBundle:Transaction' ) -> find ( $ this -> session -> get ( 'transaction-id' ) ) ; }
Get current transaction

@throws AccessDeniedHttpException
@return Transaction
Get current transaction