/** * @return \yii\db\ActiveQuery */ public function getIdCategory0() { return $this->hasOne(CategoryModel::className(), ['id' => 'idCategory']); }