/** * @return \yii\db\ActiveQuery */ public function getMarketsCrossFeatures() { return $this->hasMany(MarketsCrossFeatures::className(), ['feature_metric_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMarketsCrossFeatures() { return $this->hasOne(MarketsCrossFeatures::className(), ['id' => 'markets_cross_features_id']); }