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

Custom Many To Many and Select2 #159

Open
ndoulgeridis opened this issue Dec 31, 2014 · 0 comments
Open

Custom Many To Many and Select2 #159

ndoulgeridis opened this issue Dec 31, 2014 · 0 comments

Comments

@ndoulgeridis
Copy link

Hello,

I have successfully created a form of type afe_select2_entity with 2 entities having many-to-many relationship by doing:

 $builder->add('foo', 'afe_select2_entity', array(
        'class' => 'Foo\FooBundle\Entity\Foo',
        'multiple' => true,
        'label' => 'field.foo',

    ));

Now I have following entities:

  1. Category
  2. CategoryHasType
  3. Type

How now from category form type embed a form to select types from Type entity and has afe_select2_entity styling? (autocomplete and boxes with icon to remove on selection)

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

1 participant