public function createForm($entity)
    {
        $formSpec = ArrayUtils::iteratorToArray($this->getFormSpecification($entity));
        if (!isset($formSpec['options']['merge_input_filter'])) {
            $formSpec['options']['merge_input_filter'] = true;
        }

        return $this->getFormFactory()->createForm($formSpec);
    }
public function createForm($entity)
    {
        $formSpec = ArrayUtils::iteratorToArray($this->getFormSpecification($entity));
        if (!isset($formSpec['options']['merge_input_filter'])) {
            $formSpec['options']['merge_input_filter'] = true;
        }

        return $this->getFormFactory()->createForm($formSpec);
    }
public function createForm ( $ entity ) { $ formSpec = ArrayUtils :: iteratorToArray ( $ this -> getFormSpecification ( $ entity ) ) ; if ( ! isset ( $ formSpec [ 'options' ] [ 'merge_input_filter' ] ) ) { $ formSpec [ 'options' ] [ 'merge_input_filter' ] = true ; } return $ this -> getFormFactory ( ) -> createForm ( $ formSpec ) ; }
Create a form from an object.

@param  string|object $entity
@return \CmsCommon\Form\FormInterface
Create a form from an object .