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