final protected function getPropertyDefaultValue(string $fieldName)
    {
        /** @var null|ReflectionProperty $property */
        $property = $this->metadata->getReflectionProperties()[$fieldName] ?? null;
        if (!$property) {
            return null;
        }

        return $property->getDeclaringClass()->getDefaultProperties()[$fieldName] ?? null;
    }
final protected function getPropertyDefaultValue(string $fieldName)
    {
        /** @var null|ReflectionProperty $property */
        $property = $this->metadata->getReflectionProperties()[$fieldName] ?? null;
        if (!$property) {
            return null;
        }

        return $property->getDeclaringClass()->getDefaultProperties()[$fieldName] ?? null;
    }
final protected function getPropertyDefaultValue ( string $ fieldName ) { /** @var null|ReflectionProperty $property */ $ property = $ this -> metadata -> getReflectionProperties ( ) [ $ fieldName ] ?? null ; if ( ! $ property ) { return null ; } return $ property -> getDeclaringClass ( ) -> getDefaultProperties ( ) [ $ fieldName ] ?? null ; }
Return the default value, if any, of the property for the current entity

It does take into account that the property might be defined on a parent class
of entity. And it will find it if that is the case.

@param string $fieldName

@return mixed
Return the default value if any of the property for the current entity