whether hook for a relation in Class works