public function executeIndex(sfWebRequest $request) { $this->forward404Unless($this->room = RoomPeer::retrieveByPk($request->getParameter('roomId')), sprintf('Object room does not exist (%s).', $request->getParameter('roomId'))); $this->dayperiod_list = DayperiodPeer::doSelectFromRoom($this->room->getId()); $this->copyForm = new DayperiodCopyForm(); }