mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add customField type option to CustomFieldType
This commit is contained in:
parent
103f5c414e
commit
fee687fa40
@ -62,7 +62,11 @@ class CustomFieldType extends AbstractType
|
|||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'data_class' => 'Chill\CustomFieldsBundle\Entity\CustomField'
|
'data_class' => 'Chill\CustomFieldsBundle\Entity\CustomField'
|
||||||
));
|
));
|
||||||
$resolver->addAllowedTypes(array('type' => 'string'));
|
|
||||||
|
$resolver->setRequired(array('type'))
|
||||||
|
->addAllowedValues(array('type' =>
|
||||||
|
array_keys($this->customFieldProvider->getAllFields())
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user