code: public function changePageFromRequest($id, $request)
      {
          $this->getPage($id);
          $page = $this->createPageObject(null, null, $request);
          $this->pages[$id] = $page;
          $this->persist();
          return $page;
      }
docs: Changes a page's attributes according to data from the request.
  
  @param string        $id
  @param RequestHelper $request
  @return Page