public function changePageFromRequest($id, $request)
    {
        $this->getPage($id);
        $page = $this->createPageObject(null, null, $request);
        $this->pages[$id] = $page;
        $this->persist();
        return $page;
    }