/** * @return \yii\db\ActiveQuery */ public function getLotPreferences() { return $this->hasOne(LotPreference::className(), ['lots' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getLotPreferences() { return $this->hasMany(LotPreference::className(), ['brand' => 'id']); }