DependencyInjection/Configuration.php
protected function addPageParameterNode()
    {
    	$builder = new TreeBuilder();
    	$node = $builder->root('page');
    
    	$node
	    	->treatTrueLike(array(
	    		'versionable' => false,
	    		'signable' => false,
	    		'form' => array(
	    			'type' => "ASF\DocumentBundle\Form\Type\PageType",
	    			'name' => 'page_type'
	    		)
	    	))
	    	->treatFalseLike(array(
    			'versionable' => false,
    			'signable' => false,
	    		'form' => array(
	    			'type' => "ASF\DocumentBundle\Form\Type\PageType",
	    			'name' => 'page_type'
	    		)
	    	))
	    	->addDefaultsIfNotSet()
	    	->children()
	    		->booleanNode('versionable')
	    			->defaultFalse()
	    		->end()
	    		->booleanNode('signable')
	    			->defaultFalse()
	    		->end()
		    	->arrayNode('form')
			    	->addDefaultsIfNotSet()
			    	->children()
				    	->scalarNode('type')
				    		->defaultValue('ASF\DocumentBundle\Form\Type\PageType')
				    	->end()
				    	->scalarNode('name')
				    		->defaultValue('page_type')
				    	->end()
				    	->arrayNode('validation_groups')
				    		->prototype('scalar')->end()
				    		->defaultValue(array("Default"))
				    	->end()
			    	->end()
		    	->end()
	    	->end()
    	;
    
    	return $node;
    }
protected function addPageParameterNode()
    {
    	$builder = new TreeBuilder();
    	$node = $builder->root('page');
    
    	$node
	    	->treatTrueLike(array(
	    		'versionable' => false,
	    		'signable' => false,
	    		'form' => array(
	    			'type' => "ASF\DocumentBundle\Form\Type\PageType",
	    			'name' => 'page_type'
	    		)
	    	))
	    	->treatFalseLike(array(
    			'versionable' => false,
    			'signable' => false,
	    		'form' => array(
	    			'type' => "ASF\DocumentBundle\Form\Type\PageType",
	    			'name' => 'page_type'
	    		)
	    	))
	    	->addDefaultsIfNotSet()
	    	->children()
	    		->booleanNode('versionable')
	    			->defaultFalse()
	    		->end()
	    		->booleanNode('signable')
	    			->defaultFalse()
	    		->end()
		    	->arrayNode('form')
			    	->addDefaultsIfNotSet()
			    	->children()
				    	->scalarNode('type')
				    		->defaultValue('ASF\DocumentBundle\Form\Type\PageType')
				    	->end()
				    	->scalarNode('name')
				    		->defaultValue('page_type')
				    	->end()
				    	->arrayNode('validation_groups')
				    		->prototype('scalar')->end()
				    		->defaultValue(array("Default"))
				    	->end()
			    	->end()
		    	->end()
	    	->end()
    	;
    
    	return $node;
    }
protected function addPageParameterNode ( ) { $ builder = new TreeBuilder ( ) ; $ node = $ builder -> root ( 'page' ) ; $ node -> treatTrueLike ( array ( 'versionable' => false , 'signable' => false , 'form' => array ( 'type' => "ASF\DocumentBundle\Form\Type\PageType" , 'name' => 'page_type' ) ) ) -> treatFalseLike ( array ( 'versionable' => false , 'signable' => false , 'form' => array ( 'type' => "ASF\DocumentBundle\Form\Type\PageType" , 'name' => 'page_type' ) ) ) -> addDefaultsIfNotSet ( ) -> children ( ) -> booleanNode ( 'versionable' ) -> defaultFalse ( ) -> end ( ) -> booleanNode ( 'signable' ) -> defaultFalse ( ) -> end ( ) -> arrayNode ( 'form' ) -> addDefaultsIfNotSet ( ) -> children ( ) -> scalarNode ( 'type' ) -> defaultValue ( 'ASF\DocumentBundle\Form\Type\PageType' ) -> end ( ) -> scalarNode ( 'name' ) -> defaultValue ( 'page_type' ) -> end ( ) -> arrayNode ( 'validation_groups' ) -> prototype ( 'scalar' ) -> end ( ) -> defaultValue ( array ( "Default" ) ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; return $ node ; }
Add Page Entity Configuration
Add Page Entity Configuration