fix: Исправил ошибку метода Entity.isPersisted
This commit is contained in:
parent
41aa5d951a
commit
aa38fae8cc
@ -48,7 +48,7 @@ export abstract class Entity<T extends Data> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isPersisted(): boolean {
|
isPersisted(): boolean {
|
||||||
return this.__id !== ''
|
return this.__id !== undefined && this.__id !== ''
|
||||||
}
|
}
|
||||||
|
|
||||||
toString() {
|
toString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user