@properties = $session->getRelationNames( $class )
The getRelationNames() function is an alias for getRelations(). The section “getRelations” on page 95 provides additional information.
The getRelationNames() function gets the names of all the relationship properties for the specified class.
@relationships = $session->getRelationNames( "Router" );