Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: ciss commentedPatch against commit 4f00a9d (version 1.0-alpha5 + 18 commits, 2014-05-15).
Comment #2
ciss CreditAttribution: ciss commentedComment #3
ciss CreditAttribution: ciss commentedComment #6
paulmartin84 CreditAttribution: 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 CreditAttribution: Arnaud Kali at Unipro Ltd 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 CreditAttribution: ciss at yousign GmbH commentedPatch still applies. Setting to RTBC as there seem to be no objections.
Comment #9
ciss CreditAttribution: ciss at yousign GmbH commented@skwashd what is required to get this committed? Patch still applies to 7.x-1.x.
Comment #11
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedThanks, committed and released:
https://www.drupal.org/project/uuid/releases/7.x-1.2