2008/12/21 Jon Hancock <[email protected]>:

> Am I supposed to declare the field separate from the association?
> like:
>
>  property :shell_user_id, Integer
>  has 1, :shell_user, :class_name => User

Properties and associations are different things. What if I want to
use a convention different from [association name]_id?

has n, :followers

but person_id?

Adding more and more magic options to association macros is what makes
debugging them so hard when they misbehave, and if you have lots of
associations in your model, you will end up using modules or deferred
modules anyway.
-- 
MK

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to