PIM-2961: Allow to get association from its type