protected function fixDefaultRelations(array & $relations)
    {
        foreach ($relations as $key => $relation) {
            if ('role_adldap_by_role_id' === $relation && !class_exists(LDAP::class)) {
                unset($relations[$key]);
            }
        }
    }
protected function fixDefaultRelations(array & $relations)
    {
        foreach ($relations as $key => $relation) {
            if ('role_adldap_by_role_id' === $relation && !class_exists(LDAP::class)) {
                unset($relations[$key]);
            }
        }
    }
protected function fixDefaultRelations ( array & $ relations ) { foreach ( $ relations as $ key => $ relation ) { if ( 'role_adldap_by_role_id' === $ relation && ! class_exists ( LDAP :: class ) ) { unset ( $ relations [ $ key ] ) ; } } }
Removes any relation where related service is not installed.

@param array $relations
Removes any relation where related service is not installed .