Bundle/BusinessEntityBundle/Helper/BusinessEntityHelper.php
public function getByBusinessEntityAndId(BusinessEntity $businessEntity, $id)
    {
        if (!$this->entityManager) {
            throw new \Exception('EntityManager not defined, you should use the "victoire_core.helper.queriable_business_entity_helper" service');
        }

        return $this->entityManager->getRepository($businessEntity->getClass())->findOneById($id);
    }
public function getByBusinessEntityAndId(BusinessEntity $businessEntity, $id)
    {
        if (!$this->entityManager) {
            throw new \Exception('EntityManager not defined, you should use the "victoire_core.helper.queriable_business_entity_helper" service');
        }

        return $this->entityManager->getRepository($businessEntity->getClass())->findOneById($id);
    }
public function getByBusinessEntityAndId ( BusinessEntity $ businessEntity , $ id ) { if ( ! $ this -> entityManager ) { throw new \ Exception ( 'EntityManager not defined, you should use the "victoire_core.helper.queriable_business_entity_helper" service' ) ; } return $ this -> entityManager -> getRepository ( $ businessEntity -> getClass ( ) ) -> findOneById ( $ id ) ; }
Must be called by the service victoire_core.helper.queriable_business_entity_helper.

@param BusinessEntity $businessEntity
@param $id

@throws \Exception

@return mixed
Must be called by the service victoire_core . helper . queriable_business_entity_helper .