UserToken / UserAPI
This commit is contained in:
@@ -322,7 +322,7 @@ class DatabaseEntityHandler {
|
||||
if ($property->isInitialized($entity)) {
|
||||
$value = $property->getValue($entity);
|
||||
if (isset($this->relations[$propertyName])) {
|
||||
$value = $value->getId();
|
||||
$value = $value?->getId();
|
||||
}
|
||||
} else if (!$this->columns[$propertyName]->notNull()) {
|
||||
$value = null;
|
||||
@@ -411,4 +411,8 @@ class DatabaseEntityHandler {
|
||||
$this->logger->error($message);
|
||||
throw new Exception($message);
|
||||
}
|
||||
|
||||
public function getSQL(): SQL {
|
||||
return $this->sql;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user