protected static function formatClassnameToRelationName($fullClassName)
    {
        // test if namespace present and remove them
        if (strpos($fullClassName, '\\') !== false) {
            $fullClassName = explode('\\', $fullClassName);
            $fullClassName = array_pop($fullClassName);
        }

        return strtolower($fullClassName);
    }
protected static function formatClassnameToRelationName($fullClassName)
    {
        // test if namespace present and remove them
        if (strpos($fullClassName, '\\') !== false) {
            $fullClassName = explode('\\', $fullClassName);
            $fullClassName = array_pop($fullClassName);
        }

        return strtolower($fullClassName);
    }
protected static function formatClassnameToRelationName ( $ fullClassName ) { // test if namespace present and remove them if ( strpos ( $ fullClassName , '\\' ) !== false ) { $ fullClassName = explode ( '\\' , $ fullClassName ) ; $ fullClassName = array_pop ( $ fullClassName ) ; } return strtolower ( $ fullClassName ) ; }
Format class name without namespace to store a relation name

@param string $fullClassName - Class name to normalize (with namespace)

@return string
Format class name without namespace to store a relation name