I'm getting an error when there is a one to many relationship but no 
children exist

class User
      has n, :contacts

class Contact
   belongs_to :user

# db has one user,  no contacts yet

@user = User.first # returns first user
if @user.contacts => error condition dependent does not map to 
relationship in Contact

shouldn't it return false ?  I can wrap this with a test for contacts 
but like to avoid extra code if possible.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to