public function getAttachments() { return $this->hasMany(IssueAttachment::className(), ['_id' => 'attachmentIds']); }