On Thu, Feb 11, 2010 at 1:57 PM, harryh <[email protected]> wrote: > OK kids. Here's a lesson for you. Don't mix Mapper and Record in the > same file! Cause if you do, you might do something like this: > > class MCheckin extends MongoRecord[MCheckin] with MongoId[MCheckin] > with LifecycleCallbacks { > } > > and wonder why the #$%^&*( the callbacks aren't being called. But > then, after 5 hours of tinkering you finally realize that you were > implementing the mapper LifecycleCallbacks and not the record > LifecycleCallbacks. >
Well, that's a poke in the bottom with a 500v cattle prod. Do we have to move the common pieces of Mapper and Record into a common package? > > -harryh > > On Feb 10, 9:10 pm, harryh <[email protected]> wrote: > > Can anyone give me an example of how to implement a lifecycle callback > > in record? I can't, for the life of me, get it to work. Nor does > > there appear to be any documentation at all :( > > > > -harryh > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<liftweb%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en.
