[development] Is it not possible to have fields associated to entities that do not have bundles?

Mukesh Agarwal mukesh.agarwal17 at gmail.com
Wed Dec 7 13:26:02 UTC 2011

Hi Guys,

Entities seem to be the biggest problem of my life for the past few weeks

Ok, so I have an entity without any bundles. I read this in
bundles are not necessary.

This entry can be omitted if this entity type exposes a single bundle (all
> entities have the same collection of fields). The name of this single
> bundle will be the same as the entity type.

Now, I need to attach fields to my entity. I use
my entity reference field which seems to work fine. When I attach this
field to my instance using
I see an error saying:

drupal FieldException: Attempt to create an instance of field without a
> bundle

Does this mean I cannot attach fields to entities which do not have

Mukesh Agarwal
Innoraft Solutions <http://www.innoraft.com>  || +91 8017220799
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20111207/b12d8359/attachment.html 

More information about the development mailing list