X
X
xaseros2015-06-11 19:22:33
Yii
xaseros, 2015-06-11 19:22:33

Is there a Yii2 widget for editing many-to-many relationships?

If you want to edit a record that has a Many-to-One relationship, a simple dropDownList will suffice in many cases. Which will display a drop-down list on the form. In the case of a many-to-many connection, the necessary, ready-made widget was not at hand.
Has anyone come across and can advise?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
matperez, 2015-06-11
@xaseros

Look here h https://github.com/voskobovich/ManyToManyBehavior#...

E
Evgeny Lavrentiev, 2015-06-11
@lavrentiev

Do you need a build constructor?

L
LAV45, 2015-06-12
@LAV45

https://github.com/LAV45/yii2-target-behavior
Unlike others, behavior handles the EVENT_AFTER_VALIDATE event Can be
used for both one-to-many and many-to-many
peek at almost all use cases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question