Bundle/TemplateBundle/Entity/Template.php
public function addPage(BasePage $page)
    {
        $page->setTemplate($this);
        $this->pages[] = $page;

        return $this;
    }
public function addPage(BasePage $page)
    {
        $page->setTemplate($this);
        $this->pages[] = $page;

        return $this;
    }
public function addPage ( BasePage $ page ) { $ page -> setTemplate ( $ this ) ; $ this -> pages [ ] = $ page ; return $ this ; }
add page.

@param BasePage $page

@return Template
add page .