mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix embeddableComment field, but still cannot be null and date+user_id are not set...?
This commit is contained in:
parent
ec155b1d67
commit
450792e446
@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Form;
|
|||||||
|
|
||||||
use Chill\AsideActivityBundle\Templating\Entity\CategoryRender;
|
use Chill\AsideActivityBundle\Templating\Entity\CategoryRender;
|
||||||
use Chill\MainBundle\Form\Type\ChillTextareaType;
|
use Chill\MainBundle\Form\Type\ChillTextareaType;
|
||||||
|
use Chill\MainBundle\Form\Type\CommentType;
|
||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use Chill\PersonBundle\Entity\Person\PersonResource;
|
use Chill\PersonBundle\Entity\Person\PersonResource;
|
||||||
use Chill\PersonBundle\Entity\Person\PersonResourceKind;
|
use Chill\PersonBundle\Entity\Person\PersonResourceKind;
|
||||||
@ -46,7 +47,7 @@ final class PersonResourceType extends AbstractType
|
|||||||
$builder
|
$builder
|
||||||
->add('kind', EntityType::class, [
|
->add('kind', EntityType::class, [
|
||||||
'label' => 'Type',
|
'label' => 'Type',
|
||||||
'required' => true,
|
'required' => false,
|
||||||
'class' => PersonResourceKind::class,
|
'class' => PersonResourceKind::class,
|
||||||
'query_builder' => static function (EntityRepository $er) {
|
'query_builder' => static function (EntityRepository $er) {
|
||||||
$qb = $er->createQueryBuilder('pr');
|
$qb = $er->createQueryBuilder('pr');
|
||||||
@ -80,7 +81,7 @@ final class PersonResourceType extends AbstractType
|
|||||||
'label' => 'Description libre',
|
'label' => 'Description libre',
|
||||||
'required' => false
|
'required' => false
|
||||||
])
|
])
|
||||||
->add('comment', ChillTextareaType::class, [
|
->add('comment', CommentType::class, [
|
||||||
'label' => 'Note',
|
'label' => 'Note',
|
||||||
'required' => false
|
'required' => false
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user