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