EasyAdminBundle: Could not load type, collection embedded form
EasyAdmin: 1.6.18 Symfony: 2.7.18
im trying to add collection type:
easy_admin:
entities:
Encuesta:
class: CRMBundle\Entity\Encuesta
form:
fields:
- { property: 'nombre' }
- { property: 'descripcion' }
- { property: 'preguntas', type: 'collection' , type_options: { by_reference: true, type: CRMBundle\Form\EncuestaOpcionRespuestaType } }
- { property: 'activo' }
edit:
title: 'Editar Encuesta'
new:
title: 'Alta Encuesta'
list:
title: 'Encuesta'
apparently, the options called ‘type’ are overriding.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (4 by maintainers)
@matudelatower For 2.7 you need to use the form type name instead of its FQCN.
Hi
here is my code:
- { property: 'absences', type: 'collection', type_options: {'entry_type': 'AppBundle\Form\Type\AbsenceType', error_bubbling: false, by_reference: false, allow_add: true, allow_delete: true, delete_empty: true, entry_options: {'label': false}} }