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