class Site !!!1139461.php!!! define(inout orm : ORM = null) return parent::define($orm) ->setClass('Site') ->setTable('SITIO') ->addField('id', 'SITIO_ID', ORMDefinition::INTEGER, 8, 0, false) ->setKey('id') ->addInstance('client', 'CLIENTE_ID', 'Client') ->addInstance('payPlan', 'T_PAGO_ID', 'PayPlan') ->addField('description', 'DESCRIPCION', ORMDefinition::STRING, 255, null, true) ->addField('status', 'ESTADO', ORMDefinition::INTEGER, 2, 0, false) ->addField('created', 'FE_ALTA', ORMDefinition::DATE, null, null, true) ->addField('modified', 'FE_MODIFICACION', ORMDefinition::DATE, null, null, true) ->addField('disabled', 'FE_BAJA', ORMDefinition::DATE, null, null, true) ->addField('location', 'LOCACION', ORMDefinition::INTEGER, 9, null, true) ->addField('subscription', 'SUBSCRIPTION', ORMDefinition::INTEGER, 9, null, true) ->addField('group', 'BS_GROUP', ORMDefinition::STRING, 255, null, true) ->addField('username', 'BS_USUARIO', ORMDefinition::STRING, 255, null, true) ->addField('password', 'BS_PASSWORD', ORMDefinition::STRING, 255, null, true) ->addInstance('serviceProvider', 'SISTEMA_ID', 'ServiceProvider') ->addRelation1xN('lines', 'LINEA_ID', 'Line') ; !!!1235205.php!!! save(inout orm : ORM = null) : bool $orm = ($orm === null) ? $this->orm : $orm; $this->orm = $orm; $params["p_user_id"] = 1; $params["p_cliente_id"] = $this->getClient()->getId(); $params["p_descripcion"] = $this->getDescription(); $params["p_t_pago_id"] = $this->getPayPlan()->getId(); $params["p_locacion"] = $this->getLocation(); $params["p_subscription"] = $this->getSubscription(); $params["p_bs_group"] = $this->getGroup(); $params["p_bs_usuario"] = $this->getUsername(); $params["p_bs_password"] = $this->getPassword(); $params["p_sistema_id"] = $this->getServiceProvider()->getId(); //(is_a($this->getServicePack(), 'ServicePack')) ? $this->getServicePack()->getId() : null; $db = $orm->getDatabase()->getConnection(); $db->executeFunction("FU_SITIO_RPL", $params); !!!1235333.php!!! delete() : bool $orm = ($orm === null) ? $this->orm : $orm; $this->orm = $orm; $params["p_user_id"] = 1; $params["p_sitio_id"] = (int)$this->getId(); //(is_a($this->getServicePack(), 'ServicePack')) ? $this->getServicePack()->getId() : null; $db = $orm->getDatabase()->getConnection(); $db->executeFunction("FU_SITIO_DEL", $params);