refactor: change parentScope to scope

This commit is contained in:
Randall Morey committed 2020-07-16 18:18:25 -04:00
1 parent d847ede742
commit 433ae8c022
3 files changed
+20 -21

No files matched your search

+2 -2
View File
@@ -16,13 +16,13 @@ export default class ScopeModel extends GeneratedScopeModel {
* The parent scope, if any.
* @type {ScopeModel}
*/
@belongsTo('scope', {inverse: 'childrenScopes'}) parentScope;
@belongsTo('scope', {inverse: 'children'}) scope;
/**
* The inverse of parent scope, children.
* @type {ScopeModelp[]}
*/
@hasMany('scope', {inverse: 'parentScope'}) childrenScopes;
@hasMany('scope', {inverse: 'scope'}) children;
// =attributes