some bugfixes

This commit is contained in:
2024-05-04 16:40:37 +02:00
parent 4b6554b870
commit 653281bc2c
4 changed files with 15 additions and 10 deletions

View File

@@ -783,6 +783,11 @@ class DatabaseEntityHandler implements Persistable {
private function prepareRow(DatabaseEntity $entity, string $action, ?array $properties = null): bool|array {
$row = [];
if ($entity->getId() !== null) {
$row["id"] = $entity->getId();
}
foreach ($this->columns as $propertyName => $column) {
if ($properties !== null && !in_array($propertyName, $properties)) {
continue;