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