public function doDetail() { $className = $this->getParameter('class'); $form = $this->connectionParser->getForm($className); if ($form instanceof Form\Container) { $this->setBody($form); } else { throw new \RuntimeException('Invalid connection class'); } }
protected function transformAction(stdClass $entity) { unset($entity->id); unset($entity->status); $form = $this->actionParser->getForm($entity->class); $entity = $this->handleFormReferences($entity, $form); return $entity; }