-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
Description
Proposed new feature or change
ActiveQuery -> joinWith не поддерживает join разных баз (на одном сервере)
class A extends ActiveRecord
{
public static function getDb()
{
return Yii::$app->get('main');
}
public function getB(): \yii\db\ActiveQuery
{
return $this->hasOne(B::class, ['id' => 'b_id']);
}
}
class B extends ActiveRecord
{
public static function getDb()
{
return Yii::$app->get('second');
}
}Example
$q = A::find()->joinWith(['b'])->one();было бы не плохо сделать чтобы поддерживало
Reactions are currently unavailable