main/core/Manager/FacetManager.php
public function createField($name, $isRequired, $type, ResourceNode $resourceNode = null)
    {
        $fieldFacet = new FieldFacet();
        $fieldFacet->setLabel($name);
        $fieldFacet->setType($type);
        $fieldFacet->setRequired($isRequired);
        $fieldFacet->setResourceNode($resourceNode);
        $this->om->persist($fieldFacet);
        $this->om->flush();

        return $fieldFacet;
    }
public function createField($name, $isRequired, $type, ResourceNode $resourceNode = null)
    {
        $fieldFacet = new FieldFacet();
        $fieldFacet->setLabel($name);
        $fieldFacet->setType($type);
        $fieldFacet->setRequired($isRequired);
        $fieldFacet->setResourceNode($resourceNode);
        $this->om->persist($fieldFacet);
        $this->om->flush();

        return $fieldFacet;
    }
public function createField ( $ name , $ isRequired , $ type , ResourceNode $ resourceNode = null ) { $ fieldFacet = new FieldFacet ( ) ; $ fieldFacet -> setLabel ( $ name ) ; $ fieldFacet -> setType ( $ type ) ; $ fieldFacet -> setRequired ( $ isRequired ) ; $ fieldFacet -> setResourceNode ( $ resourceNode ) ; $ this -> om -> persist ( $ fieldFacet ) ; $ this -> om -> flush ( ) ; return $ fieldFacet ; }
used by clacoForm Manager.

@deprecated

@todo remove me
used by clacoForm Manager .