Changeset [f73f6a676adb7803cc8066ad4ae6828dbafe14f9] by Dan Kubb

July 2nd, 2009 @ 10:56 AM

Fixed relationship inheritance so inferred FK is based on base relationship

  • Spec relationship inheritance behavior
  • Added #inherited_by to 1:m, m:1 and m:m relationships for handling reinitializing a relationship in a subclass.
  • Added ManyToMany::Relationship#invert
  • Refactored Relationship comparison logic

[#921 state:resolved]

Committed by Dan Kubb

  • M lib/dm-core/associations/many_to_many.rb
  • M lib/dm-core/associations/many_to_one.rb
  • M lib/dm-core/associations/one_to_many.rb
  • M lib/dm-core/associations/relationship.rb
  • M lib/dm-core/model.rb
  • M lib/dm-core/model/relationship.rb
  • M spec/public/model/relationship_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »