Hi once again,

After a gap of several months of not using Entity Ops I am once again trying to make use of the module as before (https://www.drupal.org/node/2233507).

This time around I am trying to make use of An entity with 2 bundle types. I am slightly confused as to whether what I am experiencing is (partially) expected behaviour or not.

Upon going to the main admin screen for my entity (admin/structure/nameofentity) - In addition to the main list of entities, I get two sets of manage fields and manage display tabs (one for each of my bundle types) - is this expected behaviour? If I try to go to the management overview screen for the bundle admin/structure/nameofentity/manage/nameofbundle I get the following error:

EntityMalformedException: Missing bundle property on entity of type information_request. in entity_extract_ids() (line 7729 of C:\xampp\htdocs\drupal_731_epe\includes\common.inc).

Which leads me to wonder if I have declared my entity_info hook incorrectly. However I cannot find anything obviously wrong and have tried changing lots of different things with little avail. If I click the "add entity" link at the top of the page it then takes me to a screen with 2 add links - one for each of the bundles - so that side of things is working, it's just the management screens I seem to have a problem with.

I'd be quite happy to be told "your entity code is wrong" - but if there is a problem with Entity Ops I'd like to help try and fix it. My _entity_info hook from my module is included below on a pastebin:

http://pastebin.com/DKKduQ2Q

Comments

joachim’s picture

> I get two sets of manage fields and manage display tabs (one for each of my bundle types) - is this expected behaviour?

That's not expected behaviour.

I think the problem is that you are mixing up field/bundle management with entity management. It's as if you had admin/content/node and admin/structure/content-types mashed together.

I tend to put the admin UI at admin/content/ENTITYTYPE -- it doesn't work with the node admin tabs, but if you use Admin Menu it doesn't matter.