private function loadForm(Admin_Form_ComeniusEventImage $form) { $id = (int) $this->_getParam('id', 0); $comeniusEventId = (int) $this->_getParam('comeniusEventId', 0); $comeniusEventImage = $this->loadComeniusEventImage($id, $comeniusEventId); $form->populate($comeniusEventImage->toArray()); $form->populate(array('existingFilename' => $comeniusEventImage->filename)); return $form; }