示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getArticuloA()
 {
     return $this->hasOne(Articulo::className(), ['id' => 'articulo_aid']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getArticulos()
 {
     return $this->hasMany(Articulo::className(), ['estatus_did' => 'id']);
 }