waterline-schema
Advanced tools
Comparing version 1.0.0-23 to 1.0.0-24
@@ -222,3 +222,3 @@ // ██████╗ ██╗ ██╗██╗██╗ ██████╗ | ||
if (attribute.via.toLowerCase() === attributeName && attribute.collection.toLowerCase() === collection.identity) { | ||
throw flaverr({ name: 'userError' }, Error('The `via` property in the `' + attributeName + '` attribute of model `' + collection.identity + '` is invalid because it points at itself. Instead, if you want to indicate that this is a reflexive association with no inverse, simply remove `via`.')); | ||
throw flaverr({ name: 'userError' }, Error('The `via` property in the `' + attributeName + '` attribute of model `' + collection.identity + '` is invalid because it points at itself. Instead, if you want to indicate that this is a reflexive association with no inverse (for example, a Person\'s "favoriteSiblings" attribute, where Jill might be one of Jack\'s favorite siblings without Jack necessarily being one of Jill\'s favorite siblings), simply remove `via`. Or if you want this association to be commutative (to go both ways and automatically stay up to date for both involved records; for example, a Person\'s "siblings", where adding Jack as one of Jill\'s siblings always means that Jill should also be considered one of Jack\'s siblings too), then you\'ll still need to remove this `via` and simulate this commutativity yourself by keeping both records up to date. (See https://trello.com/c/JiwzRmFY for a visual diagram.)')); | ||
} | ||
@@ -225,0 +225,0 @@ } |
{ | ||
"name": "waterline-schema", | ||
"description": "The core schema builder used in the Waterline ORM.", | ||
"version": "1.0.0-23", | ||
"version": "1.0.0-24", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "@sailshq/lodash": "^3.10.2", |
152801
3011