The Entity Group Field module seems to do something similar with nearly 3000 installs:

https://www.drupal.org/project/entitygroupfield

How does this module differ from that?

Comments

jrb created an issue. See original summary.

andileco’s picture

Status: Active » Needs review

Hi, thanks for pointing me to entitygroupfield; I'm not sure why my searching never turned that one up. This current module is actually my second contributed attempt to fill this niche. This one replaces another I created years ago.

I have not tested entitygroupfield yet, so this is a comparison based on what I can glean from the code. This module (group_assignment_widget) is a little more light-weight than entitygroupfield. It expects you to have already created the group reference field, whereas entitygroupfield creates one for you (though a base field). The behavior only occurs if you configure the field you created to use the widget produced by this module (and you also need to have the content installed on the Group).

One thing I like more about this module versus entitygroupfield is that it uses a shutdown function, so it allows the node (or other entity) to save at a normal speed and then the relationship creation happens.

I have been using this module on a site for multiple entity types, including ones created by Feeds, and it has been working really well.

I think there's no issue having both because the architecture is different, but I will point to entitygroupfield at the top of my project description.