Hi all. I have two associated models that are linked, but neither the child_key or the parent_key are the primary key. Here is what I tried:
class Child ... belongs_to :Parent, :child_key => [:child_field], :parent_key => [:parent_field] ... end class Parent ... property :parent_field ... end This gives this error like this when I run the appropriate spec that tests the association: ~ QUERY INVALID: #, #, #, #, #, #, #, #] @links=[] @conditions=[[:eql, #, [" [email protected]"]]] @order=[# asc>] @limit=nil @offset=0 @reload=false @unique=false> (stack level too deep) ~ stack level too deep Is what I am trying to do possible? If so, what is the right way to do this? I looked at the code for answers, but it is tricky to follow. ..tony.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
