Various fixes

This commit is contained in:
barsdeveloper
2022-03-19 14:46:53 +01:00
parent 391a537a78
commit 42615b93f8
25 changed files with 267 additions and 131 deletions

View File

@@ -4,7 +4,7 @@ import IEntity from "./IEntity"
export default class GuidEntity extends IEntity {
static attributes = {
value: String
value: String,
}
static generateGuid(random = true) {
@@ -19,6 +19,10 @@ export default class GuidEntity extends IEntity {
return new GuidEntity({ value: guid })
}
valueOf() {
return this.value
}
toString() {
return this.value
}