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