(obj)
| 145 | } |
| 146 | |
| 147 | mixin(obj) { |
| 148 | const methods = ['get', 'count', 'hasSingle', 'hasAll', 'set', 'add', 'addMultiple', 'remove', 'removeMultiple', 'create']; |
| 149 | const aliases = { |
| 150 | hasSingle: 'has', |
| 151 | hasAll: 'has', |
| 152 | addMultiple: 'add', |
| 153 | removeMultiple: 'remove' |
| 154 | }; |
| 155 | |
| 156 | Helpers.mixinMethods(this, obj, methods, aliases); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Get everything currently associated with this, using an optional where clause. |