(include, self)
| 353 | } |
| 354 | |
| 355 | static _transformStringAssociation(include, self) { |
| 356 | if (self && typeof include === 'string') { |
| 357 | if (!Object.prototype.hasOwnProperty.call(self.associations, include)) { |
| 358 | throw new Error(`Association with alias "${include}" does not exist on ${self.name}`); |
| 359 | } |
| 360 | return self.associations[include]; |
| 361 | } |
| 362 | return include; |
| 363 | } |
| 364 | |
| 365 | static _conformInclude(include, self) { |
| 366 | if (include) { |