diff --git a/chandler/Database/DBEntity.php b/chandler/Database/DBEntity.php index 321710d..b32420a 100644 --- a/chandler/Database/DBEntity.php +++ b/chandler/Database/DBEntity.php @@ -63,6 +63,11 @@ abstract class DBEntity return (bool) $this->getRecord()->deleted; } + function unwrap(): object + { + return (object) $this->getRecord()->toArray(); + } + function delete(bool $softly = true): void { if(is_null($this->record))