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

alx_benjamin’s picture

Issue summary: View changes
alx_benjamin’s picture

Status: Active » Needs work
ciss’s picture

Priority: Major » Normal
Status: Needs work » Active

@alx_benjamin: "needs work" only applies to patches. Please see Status settings of issues.

tedbow’s picture

I 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

ciss’s picture

Status: Active » Closed (duplicate)
Related issues: +#2486419: For Panels - Allow entityform type argument to be the name as well as ID

Marking 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.

ciss’s picture