$ php -v
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 13:49:56) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.11-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
Subject
This issue is very similar as #1327 but I have not the same error.
I have "Survey Entity", "Question Entity" and "Choice Entity".
I have the class Admin for this different entity.
A survey entity have a list of question so it have a "sonata_type_collection" for this field.
->add('questions', 'sonata_type_collection', array("label" => false, "required" => true), array( 'edit' => 'inline', 'inline' => 'table' ) )
A question have a list of choice and have a "sonata_type_collection" for this field too.
`
->add('choix','sonata_type_collection',array(),
array(
'edit' => 'inline',
'inline' => 'table'
))
`
If I remove, for choice field,
array( 'edit' => 'inline', 'inline' => 'table' ))
I have the form in "modal" and works but I don't want a "modal".
Steps to reproduce
Create a field "sonata_tyoe_collection" in an other "sonata_type_collection" with table option.
Environment
Linux Mint 18
Sonata packages
Symfony packages
PHP version
Subject
This issue is very similar as #1327 but I have not the same error.
I have "Survey Entity", "Question Entity" and "Choice Entity".
I have the class Admin for this different entity.
A survey entity have a list of question so it have a "sonata_type_collection" for this field.
->add('questions', 'sonata_type_collection', array("label" => false, "required" => true), array( 'edit' => 'inline', 'inline' => 'table' ) )
A question have a list of choice and have a "sonata_type_collection" for this field too. ` ->add('choix','sonata_type_collection',array(), array(
`
If I remove, for choice field,
array( 'edit' => 'inline', 'inline' => 'table' ))
I have the form in "modal" and works but I don't want a "modal".Steps to reproduce
Create a field "sonata_tyoe_collection" in an other "sonata_type_collection" with table option.
Expected results
A new form for create a choice.
Actual results