Method: Hanami::Model::Configuration#define_entities_mappings
- Defined in:
- lib/hanami/model/configuration.rb
#define_entities_mappings(container, repositories) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
109 110 111 112 113 114 115 116 117 118 |
# File 'lib/hanami/model/configuration.rb', line 109 def define_entities_mappings(container, repositories) return unless defined?(Sql::Entity::Schema) repositories.each do |r| relation = r.relation entity = r.entity entity.schema = Sql::Entity::Schema.new(entities, container.relations[relation], mappings.fetch(relation)) end end |