On Jun 24, 5:08 pm, Naftoli Gugenheim <
naftoli...@gmail.com> wrote:
> One option: Make your FK mix in LifecycleCallbacks and override def
> afterSave {obj.foreach(_.save)}
> Not sure how that interacts with save's success return value. Another
> option: in the Mapper class,
>
> override def save = super.save && fk.obj.dmap(true)(_.save)
>
> This will return true if super.save returns true, and also either fk.obj is
> empty or its mapper's save returns true.
> It will return false if either super.save returns false, or if both fk.obj
> is full and its mapper's save returns false.
> It will only try to save the foreign mapper if super.save returns true.
>
> On Fri, Jun 24, 2011 at 6:01 PM, Brent Lemons