20250218#3
This commit is contained in:
1 parent
4f7993750c
commit
73b7cb3a5f
1 file changed
+1
-1
@@ -48,7 +48,7 @@ abstract class AbstractRepository implements RepositoryInterface {
|
||||
if(!isset(static::$classes[$class])) static::$classes[$class] = new ReflectionClass($class);
|
||||
/** @var ReflectionProperty $property */
|
||||
foreach(static::$classes[$class]->getProperties() as $property){
|
||||
if(!$property->isInitialized($object)) continue;
|
||||
if(!$property->isInitialized($object) || is_array($property->getValue($object))) continue;
|
||||
if(static::$classes[$class]->hasMethod('get'.ucfirst($property->getName()))){
|
||||
$fieldValue[$property->getName()] = $object->{'get'.ucfirst($property->getName())}($property->getValue($object));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user