fix getRefs return type in ForeignKey