Open et4m1r opened 6 years ago
And i have related (one-to-many) field filters
and it show all of them regardless of the owner.
How to fix this?
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('filters', EntityType::class, [
'class' => Filter::class,
'choice_label' => 'name',
'multiple' => true,
'required' => false,
]),
...
Also if i add a new related items - it have no owner after save...
...
->add('figures', CollectionType::class, [
'by_reference' => false,
], [
'edit' => 'inline',
]),
...
Why?
Is is possible filter sonata_type_model list