Add method getAssociationsByType to ClassMetadata

I propose to add a method which can be used to retrieve the associations of a specific type (OneToOne, ...)