[#30172] Standard getAssociations function to use it in any extension