UUID handles dependencies by creating required entities before their parent entities.
This doesn't work for field_collection which requires the host entity to be present for field_collection_item entities to be saved properly.
Because of this there needs to be a way to alter the list of entities before they are processed. I propose adding an alter hook to uuid_entities_rebuild(). This will allow field_collection to remove any field_collection entities from the list to add them back later in hook_field_uuid_presave().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uuid-hook_uuid_entities_pre_rebuild_alter-2308983-1.patch | 593 bytes | ciss |
Comments
Comment #1
ciss commentedPatch against commit 4f00a9d (version 1.0-alpha5 + 18 commits, 2014-05-15).
Comment #2
ciss commentedComment #3
ciss commentedComment #6
paulmartin84 commentedWould be good to get this committed, its still applying cleanly to latest dev, have tested it with field collections and its working well. I am also using it with paragraphs module as well.
Comment #7
Arnaud Kali commentedHaving trouble to save field collections with UUID enabled but this patch from #1 solved it!
+1 to get this committed as field_collection is now working fine together with patch from https://www.drupal.org/node/2074599#comment-7798611
Comment #8
ciss commentedPatch still applies. Setting to RTBC as there seem to be no objections.
Comment #9
ciss commented@skwashd what is required to get this committed? Patch still applies to 7.x-1.x.
Comment #11
manuel garcia commentedThanks, committed and released:
https://www.drupal.org/project/uuid/releases/7.x-1.2