private function getLazyLoadedPublicProperties(ClassMetadata $class)
    {
        $defaultProperties = $class->getReflectionClass()->getDefaultProperties();
        $properties        = [];

        foreach ($class->getReflectionClass()->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
            $name = $property->getName();

            if (($class->hasField($name) || $class->hasAssociation($name)) && ! $class->isIdentifier($name)) {
                $properties[$name] = $defaultProperties[$name];
            }
        }

        return $properties;
    }
private function getLazyLoadedPublicProperties(ClassMetadata $class)
    {
        $defaultProperties = $class->getReflectionClass()->getDefaultProperties();
        $properties        = [];

        foreach ($class->getReflectionClass()->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
            $name = $property->getName();

            if (($class->hasField($name) || $class->hasAssociation($name)) && ! $class->isIdentifier($name)) {
                $properties[$name] = $defaultProperties[$name];
            }
        }

        return $properties;
    }
private function getLazyLoadedPublicProperties ( ClassMetadata $ class ) { $ defaultProperties = $ class -> getReflectionClass ( ) -> getDefaultProperties ( ) ; $ properties = [ ] ; foreach ( $ class -> getReflectionClass ( ) -> getProperties ( \ ReflectionProperty :: IS_PUBLIC ) as $ property ) { $ name = $ property -> getName ( ) ; if ( ( $ class -> hasField ( $ name ) || $ class -> hasAssociation ( $ name ) ) && ! $ class -> isIdentifier ( $ name ) ) { $ properties [ $ name ] = $ defaultProperties [ $ name ] ; } } return $ properties ; }
Generates the list of public properties to be lazy loaded, with their default values.

@param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class

@return mixed[]
Generates the list of public properties to be lazy loaded with their default values .