/** * @return \yii\db\ActiveQuery */ public function getR() { return $this->hasOne(RivegaucheProduct::className(), ['id' => 'r_id']); }
/** * @return \yii\db\ActiveQuery */ public function getArticle0() { return $this->hasOne(RivegaucheProduct::className(), ['article' => 'article']); }