Bundle/BusinessPageBundle/Entity/BusinessPage.php
public function getBusinessEntity()
    {
        //if there is no entity
        if ($this->businessEntity === null) {
            //if there is a proxy
            if ($this->getEntityProxy() !== null) {
                $this->businessEntity = $this->getEntityProxy()->getEntity($this->getBusinessEntityId());

                return $this->businessEntity;
            }
        }

        return $this->businessEntity;
    }
public function getBusinessEntity()
    {
        //if there is no entity
        if ($this->businessEntity === null) {
            //if there is a proxy
            if ($this->getEntityProxy() !== null) {
                $this->businessEntity = $this->getEntityProxy()->getEntity($this->getBusinessEntityId());

                return $this->businessEntity;
            }
        }

        return $this->businessEntity;
    }
public function getBusinessEntity ( ) { //if there is no entity if ( $ this -> businessEntity === null ) { //if there is a proxy if ( $ this -> getEntityProxy ( ) !== null ) { $ this -> businessEntity = $ this -> getEntityProxy ( ) -> getEntity ( $ this -> getBusinessEntityId ( ) ) ; return $ this -> businessEntity ; } } return $ this -> businessEntity ; }
Get the business entity.

@return number
Get the business entity .