Bundle/CoreBundle/Entity/BaseEntityProxy.php
public function getEntity($entityId)
    {
        //test the entity name
        if ($entityId == null) {
            throw new \Exception('The businessEntityId is not defined for the entityProxy with the id:'.$this->getId());
        }

        $functionName = 'get'.ucfirst($entityId);
        $entity = call_user_func([$this, $functionName]);

        return $entity;
    }
public function getEntity($entityId)
    {
        //test the entity name
        if ($entityId == null) {
            throw new \Exception('The businessEntityId is not defined for the entityProxy with the id:'.$this->getId());
        }

        $functionName = 'get'.ucfirst($entityId);
        $entity = call_user_func([$this, $functionName]);

        return $entity;
    }
public function getEntity ( $ entityId ) { //test the entity name if ( $ entityId == null ) { throw new \ Exception ( 'The businessEntityId is not defined for the entityProxy with the id:' . $ this -> getId ( ) ) ; } $ functionName = 'get' . ucfirst ( $ entityId ) ; $ entity = call_user_func ( [ $ this , $ functionName ] ) ; return $ entity ; }
Get the entity of the proxy.

@param string $entityId

@throws \Exception

@return object
Get the entity of the proxy .