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