20250330#2

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

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){