On Aug 7, 2011, at 7:12 AM, TheDude wrote:
> class Player
> [snip]
> has 1, :guild_rank, 'GuildRank', :required => false
> end
...
> Any idea why I would be getting this error?
`has 1` (OneToOne) relationships don't accept the :required flag. If you want
to specify that the related :guild_rank is optional for the Player model, use a
0..1 range:
class Player
…
has 0..1, :guild_rank, 'GuildRank'
…
end
Hope that helps,
—Emmanuel
--
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.