()
| 774 | this.type = typeof options.type === 'function' ? new options.type() : options.type; |
| 775 | } |
| 776 | toSql() { |
| 777 | return `${this.type.toSql()}[]`; |
| 778 | } |
| 779 | validate(value) { |
| 780 | if (!Array.isArray(value)) { |
| 781 | throw new sequelizeErrors.ValidationError(util.format('%j is not a valid array', value)); |