src/Flowcode/ClassificationBundle/Controller/CollectionController.php
private function createCreateForm(Collection $entity)
    {
        $form = $this->createForm($this->get('amulen.classification.form.collection'), $entity, array(
            'action' => $this->generateUrl('admin_collection_create'),
            'method' => 'POST',
        ));

        $form->add('submit', 'submit', array('label' => 'Create'));

        return $form;
    }
private function createCreateForm(Collection $entity)
    {
        $form = $this->createForm($this->get('amulen.classification.form.collection'), $entity, array(
            'action' => $this->generateUrl('admin_collection_create'),
            'method' => 'POST',
        ));

        $form->add('submit', 'submit', array('label' => 'Create'));

        return $form;
    }
private function createCreateForm ( Collection $ entity ) { $ form = $ this -> createForm ( $ this -> get ( 'amulen.classification.form.collection' ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'admin_collection_create' ) , 'method' => 'POST' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Create' ) ) ; return $ form ; }
Creates a form to create a Collection entity.

@param Collection $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to create a Collection entity .