Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is is possible filter sonata_type_model list #28

Open
et4m1r opened this issue Jan 5, 2018 · 1 comment
Open

Is is possible filter sonata_type_model list #28

et4m1r opened this issue Jan 5, 2018 · 1 comment

Comments

@et4m1r
Copy link

et4m1r commented Jan 5, 2018

Is is possible filter sonata_type_model list

@fdor
Copy link

fdor commented Jul 27, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants