public function initialize()
 {
     parent::initialize();
     $this->setSchema('PRODUCAO_9ZGXI5');
     $this->setConnectionService('protheusDb');
     $this->setReadConnectionService('protheusDb');
 }
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('RM');
     $this->setConnectionService('rmDb');
     $this->setReadConnectionService('rmDb');
     $this->hasMany('siCodCliente', __NAMESPACE__ . '\\Pfunc', 'pfCodSituacao', ['alias' => 'Pfunc']);
 }
Beispiel #3
0
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('PRODUCAO_9ZGXI5');
     $this->setConnectionService('protheusDb');
     $this->setReadConnectionService('protheusDb');
     $this->hasMany('szgEmail', __NAMESPACE__ . '\\Colaboradores', 'szhEmail', ['alias' => 'Colaboradores']);
 }
Beispiel #4
0
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('RM');
     $this->setConnectionService('rmDb');
     $this->setReadConnectionService('rmDb');
     $this->hasMany(['fuCodColigada', 'fuCodigo'], __NAMESPACE__ . '\\Pfunc', ['pfCodColigada', 'pfCodFuncao'], ['alias' => 'Pfunc']);
 }
Beispiel #5
0
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('RM');
     $this->setConnectionService('rmDb');
     $this->setReadConnectionService('rmDb');
     $this->hasMany('ppCodigo', __NAMESPACE__ . '\\Pfunc', 'pfCodPessoa', ['alias' => 'Pfunc']);
 }
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('PRODUCAO_9ZGXI5');
     $this->setConnectionService('protheusDb');
     $this->setReadConnectionService('protheusDb');
     $this->hasMany('sb5Cod', __NAMESPACE__ . '\\ProdutosDescricao', 'sb1Cod', ['alias' => 'ProdutosDescricao']);
 }
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('PRODUCAO_9ZGXI5');
     $this->setConnectionService('protheusDb');
     $this->setReadConnectionService('protheusDb');
     $this->belongsTo('szhEmail', __NAMESPACE__ . '\\Zimbra', 'szgEmail', ['alias' => 'Zimbra']);
 }
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('PRODUCAO_9ZGXI5');
     $this->setConnectionService('protheusDb');
     $this->setReadConnectionService('protheusDb');
     $this->belongsTo('sb1Cod', __NAMESPACE__ . '\\ProdutosAdicionais', 'sb5Cod', ['alias' => 'ProdutosAdicionais']);
     $this->belongsTo('sb1Grupo', __NAMESPACE__ . '\\ProdutosGrupos', 'sbmGrupo', ['alias' => 'ProdutosGrupos']);
 }
Beispiel #9
0
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('RM');
     $this->setConnectionService('rmDb');
     $this->setReadConnectionService('rmDb');
     $this->belongsTo('pfCodColigada', __NAMESPACE__ . '\\Gcoligada', 'clCodColigada', ['alias' => 'Gcoligada']);
     $this->belongsTo('pfCodPessoa', __NAMESPACE__ . '\\Ppessoa', 'ppCodigo', ['alias' => 'Ppessoa']);
     $this->belongsTo('pfCodTipo', __NAMESPACE__ . '\\Ptpfunc', 'tiCodCliente', ['alias' => 'Ptpfunc']);
     $this->belongsTo(['pfCodColigada', 'pfCodFuncao'], __NAMESPACE__ . '\\Pfuncao', ['fuCodColigada', 'fuCodigo'], ['alias' => 'Pfuncao']);
     $this->belongsTo('pfCodSituacao', __NAMESPACE__ . '\\Pcodsituacao', 'siCodCliente', ['alias' => 'Pcodsituacao']);
     $this->belongsTo(['pfCodColigada', 'pfCodSecao'], __NAMESPACE__ . '\\Psecao', ['psCodColigada', 'psCodigo'], ['alias' => 'Psecao']);
     $this->belongsTo(['pfCodColigada', 'pfCodFilial'], __NAMESPACE__ . '\\Gfilial', ['fiCodColigada', 'fiCodFilial'], ['alias' => 'Gfilial']);
 }
Beispiel #10
0
 public function initialize()
 {
     parent::initialize();
     $this->setConnectionService('helpersDb');
 }
Beispiel #11
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->hasMany('id', __NAMESPACE__ . '\\Perfils', 'controller', ['alias' => 'Perfils']);
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #12
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->belongsTo('userId', __NAMESPACE__ . '\\Users', 'id', ['alias' => 'Users']);
     $this->belongsTo('groupId', __NAMESPACE__ . '\\Groups', 'id', ['alias' => 'Groups']);
     $this->belongsTo('module', __NAMESPACE__ . '\\Modules', 'id', ['alias' => 'Modules']);
     $this->belongsTo('controller', __NAMESPACE__ . '\\Controllers', 'id', ['alias' => 'Controllers']);
     $this->belongsTo('action', __NAMESPACE__ . '\\Actions', 'id', ['alias' => 'Actions']);
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #13
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->belongsTo('department', __NAMESPACE__ . '\\Departments', 'id', ['alias' => 'Departments']);
     $this->belongsTo('category', __NAMESPACE__ . '\\Categories', 'id', ['alias' => 'Categories']);
     $this->belongsTo('module', __NAMESPACE__ . '\\Modules', 'id', ['alias' => 'Modules']);
     $this->belongsTo('controller', __NAMESPACE__ . '\\Controllers', 'id', ['alias' => 'Controllers']);
     $this->belongsTo('action', __NAMESPACE__ . '\\Actions', 'id', ['alias' => 'Actions']);
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->belongsTo('department', __NAMESPACE__ . '\\Departments', 'id', ['alias' => 'Departments']);
     $this->belongsTo('category', __NAMESPACE__ . '\\Categories', 'id', ['alias' => 'Categories']);
     $this->addBehavior(new SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
 /**
  *
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('TELEFONIA');
     $this->setConnectionService('telefoniaDb');
     $this->addBehavior(new SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #16
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->belongsTo('empresa', __NAMESPACE__ . '\\Empresas', 'id', array('alias' => 'Empresas'));
     $this->addBehavior(new SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #17
0
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #18
0
 /**
  *
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('TELEFONIA');
     $this->setConnectionService('telefoniaDb');
 }
Beispiel #19
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->hasMany('id', __NAMESPACE__ . '\\Logins', 'userId', ['alias' => 'Logins']);
     $this->hasMany('id', __NAMESPACE__ . '\\Notifications', 'userId', ['alias' => 'Notifications']);
     $this->hasMany('id', __NAMESPACE__ . '\\Perfils', 'user', ['alias' => 'Perfils']);
     $this->hasMany('id', __NAMESPACE__ . '\\Tokens', 'usersId', ['alias' => 'Tokens']);
     $this->hasMany('id', __NAMESPACE__ . '\\UsersGroups', 'userId', ['alias' => 'UsersGroups']);
     $this->addBehavior(new SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #20
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->hasMany('id', __NAMESPACE__ . '\\Menus', 'category', array('alias' => 'Menus'));
     $this->addBehavior(new SoftDelete(['field' => 'sdel', 'value' => '*']));
 }
Beispiel #21
0
 /**
  * Initialize method for model.
  */
 public function initialize()
 {
     parent::initialize();
     $this->setSchema('NUCLEO');
     $this->hasMany('id', __NAMESPACE__ . '\\Menus', 'department', array('alias' => 'Menus'));
     $this->hasMany('id', __NAMESPACE__ . '\\CategoriesDocuments', 'department', array('alias' => 'CategoriesDocuments'));
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\SoftDelete(['field' => 'sdel', 'value' => '*']));
 }