20250330#2

This commit is contained in:
User committed 2025-03-30 15:13:47 +03:00
1 parent fd996d40c8
commit 1ce2a09e01
5 files changed
+24 -6

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ use Exception;
use ReflectionClass;
use ReflectionException;
use Rmphp\Storage\Attribute\Entity;
use Rmphp\Storage\Attribute\EntityWithoutEmpty;
abstract class AbstractDataObject {
@@ -32,6 +33,7 @@ abstract class AbstractDataObject {
}
/** @var Entity $entityAttributes */
$entityAttributes = self::$attributeObjects[$class->getName()][0];
if(!empty($class->getAttributes(EntityWithoutEmpty::class))) $entityAttributes->withoutEmpty = true;
$value = [];
foreach($class->getProperties() as $property){