(obj)
| 395 | } |
| 396 | |
| 397 | mixin(obj) { |
| 398 | const methods = ['get', 'count', 'hasSingle', 'hasAll', 'set', 'add', 'addMultiple', 'remove', 'removeMultiple', 'create']; |
| 399 | const aliases = { |
| 400 | hasSingle: 'has', |
| 401 | hasAll: 'has', |
| 402 | addMultiple: 'add', |
| 403 | removeMultiple: 'remove' |
| 404 | }; |
| 405 | |
| 406 | Helpers.mixinMethods(this, obj, methods, aliases); |
| 407 | } |
| 408 | |
| 409 | /** |
| 410 | * Get everything currently associated with this, using an optional where clause. |