src/EntityHelper/CustomFieldsGetSet.php
private static function getEntityType($owningEntity, $key)
    {
        $config = self::getConfig();
        $owningClass = ClassUtils::getClass($owningEntity);
        if (isset($config[$owningClass][$key])) {
            return $config[$owningClass][$key]['type'];
        }

        return null;
    }
private static function getEntityType($owningEntity, $key)
    {
        $config = self::getConfig();
        $owningClass = ClassUtils::getClass($owningEntity);
        if (isset($config[$owningClass][$key])) {
            return $config[$owningClass][$key]['type'];
        }

        return null;
    }
private static function getEntityType ( $ owningEntity , $ key ) { $ config = self :: getConfig ( ) ; $ owningClass = ClassUtils :: getClass ( $ owningEntity ) ; if ( isset ( $ config [ $ owningClass ] [ $ key ] ) ) { return $ config [ $ owningClass ] [ $ key ] [ 'type' ] ; } return null ; }
Returns the type according to the configuration.

@param object $owningEntity
@param string $key

@return string|null
Returns the type according to the configuration .