El lunes 01 de junio, Jeremy Evans escribió:
> * A delay_add_association plugin has been added, for delaying add_*
>   method calls for associations until after the receiver has been
>   saved, if the receiver is a new object. Example:
> 
>     artist = Artist.new(:name=>'Foo')
>     artist.add_album(Album.new(:name=>'Bar'))
>     # No database queries yet
> 
>     artist.save # Saves artist, then album

Hi.

Can I use the same behaviour when artist is not new? I'd like to save later my
objects in one atomic transaction, so I need to do assignment first and save
later.

I'd like a similar mechanism for remove_* and remove_all_* methods.

-- 
David

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to