(include, self)
| 330 | } |
| 331 | |
| 332 | static _transformStringAssociation(include, self) { |
| 333 | if (self && typeof include === 'string') { |
| 334 | if (!Object.prototype.hasOwnProperty.call(self.associations, include)) { |
| 335 | throw new Error(`Association with alias "${include}" does not exist on ${self.name}`); |
| 336 | } |
| 337 | return self.associations[include]; |
| 338 | } |
| 339 | return include; |
| 340 | } |
| 341 | |
| 342 | static _conformInclude(include, self) { |
| 343 | if (include) { |