public function deletePage($id)
    {
        $this->getPage($id);
        unset($this->pages[$id]);
        $this->persist();
    }
public function deletePage($id)
    {
        $this->getPage($id);
        unset($this->pages[$id]);
        $this->persist();
    }
Deletes a page.

@param $id