coopTilleuls / CoopTilleulsAclSonataAdminExtensionBundle

ACL list filtering for SonataAdmin
http://les-tilleuls.coop
MIT License
45 stars 21 forks source link

Is is possible filter sonata_type_model list #28

Open et4m1r opened 6 years ago

et4m1r commented 6 years ago

Is is possible filter sonata_type_model list

fdor commented 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?