/** * @return \yii\db\ActiveQuery */ public function getIdOrgn() { return $this->hasOne(Orgn::className(), ['id_orgn' => 'id_orgn']); }