/** * @return \yii\db\ActiveQuery */ public function getCantons() { return $this->hasMany(Canton::className(), ['province_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdCant() { return $this->hasOne(Canton::className(), ['id_cant' => 'id_cant']); }
/** * @return \yii\db\ActiveQuery */ public function getCanton() { return $this->hasOne(Canton::className(), ['id' => 'canton_id']); }