At the model_entity_info(), there's only two entity keys defined; id and bundle.

There should also be 'label' key for defining the "name" property of an entity (title for nodes). In Model's case its 'name'.

Bumped into this when using Entity Reference module that is trying to get the 'label' key when searching entities within it's autocomplete widget.

Patch attached.

CommentFileSizeAuthor
entity-keys-label.patch513 bytesiSampo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

a.ross’s picture

Status: Needs review » Needs work

Yes, also ran into this when testing with auto_entitylabel. But this patch isn't sufficient, as the entity create form should make use of it as well.

ronald_istos’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Don't see the same issue anymore so closing now.