refactor: change parentScope to scope
This commit is contained in:
3 files changed
+20
-21
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user