public static function getFormattedIdentifier(ClassMetadata $relatedClass, array $criteria, $fieldName, $value)
    {
        $isObject = \is_object($criteria[$fieldName]);

        return $isObject && null === $value
            ? self::formatEmptyIdentifier($relatedClass)
            : $value;
    }
public static function getFormattedIdentifier(ClassMetadata $relatedClass, array $criteria, $fieldName, $value)
    {
        $isObject = \is_object($criteria[$fieldName]);

        return $isObject && null === $value
            ? self::formatEmptyIdentifier($relatedClass)
            : $value;
    }
public static function getFormattedIdentifier ( ClassMetadata $ relatedClass , array $ criteria , $ fieldName , $ value ) { $ isObject = \ is_object ( $ criteria [ $ fieldName ] ) ; return $ isObject && null === $ value ? self :: formatEmptyIdentifier ( $ relatedClass ) : $ value ; }
Get the formatted identifier.

@param ClassMetadata   $relatedClass The metadata of related class
@param array           $criteria     The validator criteria
@param string          $fieldName    The field name
@param null|int|string $value        The identifier value

@return int|string
Get the formatted identifier .