Bundle/PageBundle/Helper/PageHelper.php
public function updatePageWithEntity(BusinessTemplate $page, $entity)
    {
        $page = $this->businessPageBuilder->generateEntityPageFromTemplate($page, $entity, $this->entityManager);
        $this->pageSeoHelper->updateSeoByEntity($page, $entity);

        //update the parameters of the page
        $this->businessPageBuilder->updatePageParametersByEntity($page, $entity);

        return $page;
    }
public function updatePageWithEntity(BusinessTemplate $page, $entity)
    {
        $page = $this->businessPageBuilder->generateEntityPageFromTemplate($page, $entity, $this->entityManager);
        $this->pageSeoHelper->updateSeoByEntity($page, $entity);

        //update the parameters of the page
        $this->businessPageBuilder->updatePageParametersByEntity($page, $entity);

        return $page;
    }
public function updatePageWithEntity ( BusinessTemplate $ page , $ entity ) { $ page = $ this -> businessPageBuilder -> generateEntityPageFromTemplate ( $ page , $ entity , $ this -> entityManager ) ; $ this -> pageSeoHelper -> updateSeoByEntity ( $ page , $ entity ) ; //update the parameters of the page $ this -> businessPageBuilder -> updatePageParametersByEntity ( $ page , $ entity ) ; return $ page ; }
Populate the page with given entity.

@param BusinessTemplate $page
@param BusinessEntity   $entity
Populate the page with given entity .