protected function _actionCreate(KModelContext $context) { if ($this->getState()->package) { $context->entity->append(array('entity_package' => $this->getState()->package)); } return parent::_actionCreate($context); }
/** * Overridden for pushing the container value. */ protected function _actionCreate(KModelContext $context) { $context->entity->append(array('container' => $context->state->container)); return parent::_actionCreate($context); }