def finalize_attributes!(gateway: nil, relations: nil)
      inferrer.(self, gateway).each { |key, value| set!(key, value) }

      yield if block_given?

      initialize_primary_key_names

      self
    end
def finalize_attributes!(gateway: nil, relations: nil)
      inferrer.(self, gateway).each { |key, value| set!(key, value) }

      yield if block_given?

      initialize_primary_key_names

      self
    end
This hook is called when relation is being build during container finalization

 When block is provided it'll be called just before freezing the instance
 so that additional ivars can be set

 @return [self]

 @api private