@classmethod
def __declare_first__(cls):
    """declarative hook called within the 'before_configure' mapper event."""
    for lcl, rmt in cls._to_ref:
        cls._decl_class_registry[lcl]._reference_table(cls.
            _decl_class_registry[rmt].__table__)
    cls._to_ref.clear()
