entity_id and entity_type need to be set in $values: entity_get_controller('registration')->create($values)

otherwise ::construct, and therefore ->entity (host entity), will not set correctly.

CommentFileSizeAuthor
fix-entity-create-args.patch2.8 KBdpi

Comments

levelos’s picture

Status: Needs review » Fixed

Got it, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • levelos committed 1273643 on 7.x-1.x, panels, any-entity, slots, integrations, hold_state authored by dpi
    #1524590 by dpi: Fix arguments for new Registration entities.