/** * Enter description here... * * @return bool */ public function save() { if (!isNull($obHolder = $this->getHolder())) { if ($obHolder->is_personal) { $this->state = RM_Equipment_Entity_State::DELIVERED; } } parent::save(); }
/** * Enter description here... * * @param mixed $args * @return void */ function __construct($args) { parent::__construct($args); $this->type = NULL; // not error }