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