module/FzyCommon/src/FzyCommon/Service/Update/Base.php
public function getForms()
    {
        if (!isset($this->forms)) {
            $forms = array();
            $entities = $this->getEntities();
            // set up any connections
            $this->beforeFormGeneration($entities);
            foreach ($entities as $tag => $entity) {
                /* @var $form \Zend\Form\Form */
                $form = $this->entityToForm($entity);
                $this->getEventManager()
                    ->trigger(self::EVENT_CONFIGURE_FORM.$tag, $this, array(
                        'tag' => $tag,
                        'entity' => $entity,
                        'form' => $form,
                        'entities' => $entities,
                    ));
                $forms[$tag] = $form;
            }
            $this->forms = $forms;
        }

        return $this->forms;
    }
public function getForms()
    {
        if (!isset($this->forms)) {
            $forms = array();
            $entities = $this->getEntities();
            // set up any connections
            $this->beforeFormGeneration($entities);
            foreach ($entities as $tag => $entity) {
                /* @var $form \Zend\Form\Form */
                $form = $this->entityToForm($entity);
                $this->getEventManager()
                    ->trigger(self::EVENT_CONFIGURE_FORM.$tag, $this, array(
                        'tag' => $tag,
                        'entity' => $entity,
                        'form' => $form,
                        'entities' => $entities,
                    ));
                $forms[$tag] = $form;
            }
            $this->forms = $forms;
        }

        return $this->forms;
    }
Generate forms from entities
@return array