I defined a field collection then tried to attach it to my entity during my modules hook_install. Here was the error:

'Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined method FieldCollectionItemEntity::__set_state()'

It looks like the fields were created fine. But no instance.

Comments

guenoz’s picture

@kevinquillen any work around for this error ?

kscheirer’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Can you try this again vs the latest dev version? (7.x-1.0-beta4+14-dev). I'm not convinced this is a field_collection error, your post seems to indicate it's code in your custom module's hook_install(), or drush, that's causing the error.

jmuzz’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)