Ejemplo n.º 1
0
 public function getPermstatestype()
 {
     return $this->hasOne(\app\models\States::className(), ['ID' => 'ACTION_ID']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStates()
 {
     return $this->hasOne(States::className(), ['id' => 'state']);
 }
Ejemplo n.º 3
0
 public function getState()
 {
     return $this->hasOne(\app\models\States::className(), ['ID' => 'NEXT_STATE_ID'])->where(['DEL_TRACT_ID' => 0]);
 }
Ejemplo n.º 4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStates()
 {
     return $this->hasMany(States::className(), ['id_country' => 'id']);
 }