Yes.
Instead of waiting 5 days for an answer, you could have typed:
merb -i
Friend.create(:name => "Frank")
and the answer is there :)
On Nov 25, 5:17 pm, DAddYE <[EMAIL PROTECTED]> wrote:
> Nope?
>
> On 20 Nov, 10:52, DAddYE <[EMAIL PROTECTED]> wrote:
>
> > Hello to All,
>
> > I've a question.
>
> > DM, supportMassAssignments?
>
> > See here:
>
> > class Person
> > include DataMapper::Resource
> > property :id, Serial
> > property :name, String
> > has n, :friends
> > end
>
> > class Friend
> > include DataMapper::Resource
> > property :id, Serial
> > property :name, String
> > belongs_to :person
> > end
>
> > Is possible to do:
>
> > Friend.create(:name => 'Mike', :friends => [{:name => 'Merola'},
> > {:name => 'Frank'}])
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---