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.
When doing features revert (I do it via drush) that affects entityform_types id column in entityform_type database table gets incremented.
This makes it impossible to reference entityform_type as entity reference as it will always lose its reference id.
Looking at mysql log this is what's happening
- foreach record in entityform_type table
--Delete record
--Insert(re-insert) just deleted record with new/old data
--update the rest or records
-endforeach
Please note this happens for every single record without exception.
Comments
Comment #1
alx_benjamin CreditAttribution: alx_benjamin commentedComment #2
alx_benjamin CreditAttribution: alx_benjamin commentedComment #3
ciss CreditAttribution: ciss at yousign GmbH commented@alx_benjamin: "needs work" only applies to patches. Please see Status settings of issues.
Comment #4
tedbowI am pretty sure this is cause by this Entity API issue: #2051079: Do not delete entities on revert
This module doesn't handle the Features integration
Comment #5
ciss CreditAttribution: ciss at yousign GmbH commentedMarking as duplicate as per #4.
A possible solution for ctools plugins can be found in #2486419: For Panels - Allow entityform type argument to be the name as well as ID.
Comment #6
ciss CreditAttribution: ciss at yousign GmbH commented