- Issue created by @AlfTheCat
- π©πͺGermany jurgenhaas Gottmadingen
Moving this away from version 1.2.x as this is not a thing. Current version is 1.1.x and the next version will be 2.0.x, nothing in between. Unfortunately, we can't delete that 1.2.x branch for compliance reason, but please don't use that.
Your question seems unrelated to ECK. It sounds more generic like you have an entity which has a multi-value reference field to other entities. And you want to know the entity if one of the referenced entities get inserted? That's actually not possible, because when inserting the referenced entities, that get created from the same form as you're using IEF, at that time the parent entity hasn't been saved yet. In such a scenario, Drupal first creates all the referenced entities and afterwards the parent entity. That's necessary, because when saving the parent, the referenced entities must already exist; otherwise Drupal couldn't save the reference to them.
So, you may have to react on the insert parent entity event, and then go through the list of all the referenced entities to do your magic.
- Status changed to Fixed
6 months ago 9:30am 10 January 2024 - πΉπThailand AlfTheCat
OK, thanks very much for the comprehensive clarification. And I will mind the 1.2.x branch issue. I will go the direction of reacting to the saving of the parent entity and then loop through the referenced child entities that haven't created variations yet. This will be interesting because I've never successfully created a loop with ECA but I know it's possible. I will share my results here for the benefit of others who are trying to accomplish something similar.
Automatically closed - issue fixed for 2 weeks with no activity.