/** * @return \yii\db\ActiveQuery */ public function getInstitutes() { return $this->hasMany(Institute::className(), ['manager_id' => 'id']); }