20250224#2

This commit is contained in:
User
2025-02-24 19:02:59 +03:00
parent 5b0c0bc7b4
commit 73c9af71ab
2 changed files with 2 additions and 18 deletions

View File

@@ -37,7 +37,7 @@ abstract class AbstractRepository extends AbstractDataObject implements Reposito
$fieldValue[$property->getName()] = $property->getValue($object);
}
if(false !== $fieldValue[$property->getName()]) {
if(array_key_exists($property->getName(), $fieldValue) && false !== $fieldValue[$property->getName()]) {
$out[strtolower(preg_replace("'([A-Z])'", "_$1", $property->getName()))] = $fieldValue[$property->getName()];
}
}