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