I have a taxonomy vocabulary with a field collection inside. I need to export the terms using Features, but was not getting the field collection values with the export of the terms.
I just pulled in the latest version of UUID Features (1aa5baa9e082d1360dcf34af240f6ef54f3caac2) and am now getting the field collection values separately in a ".uuid_field_collection.inc" file in my feature. On import of the feature, however, an exception is thrown with the message "The host entity cannot be changed." from line 359 of "field_collection.module".
Taking a quick look at the code, my guess is that neither the field collection item nor term have integer ids but do have UUIDs, and the code is expecting that if the host entity is already populated, its integer ID must match the one in the DB. It may need to compare on UUIDs, or we might need to somehow fake out the id until both are persisted.
Comments
Comment #1
guypaddock commentedComment #2
jmuzz commentedComment #3
antiorario commented