Ich versuche, mein Projekt von symfony2 zu symfony3 zu aktualisieren. Ich will die Befreiung von dieser deprecation WarnungSymfony: cascade_validation Option ist veraltet
The "cascade_validation" option is deprecated since version 2.8 and will be removed in 3.0. Use "constraints" with a Valid constraint instead."
Unten ist mein Code
->add('student_name', 'collection', array(
'entry_type' => TextType::class,
'allow_add' => true,
'cascade_validation' => true,
'options' => array(
'required' => false
)
))
Kann ich diese Linie nur um entfernen 'cascade_validation' => true
ohne irgendwelche Probleme verursacht? Oder was wäre der entsprechende Code in symfony3?
aus dem [Migrationsleitfaden] (https://github.com/symfony/symfony/blob/master/UPGRADE-3.0.md#form): 'Die Option cascade_validation wurde entfernt. Verwenden Sie stattdessen die Constraints-Option zusammen mit der Valid-Einschränkung – Matteo