David Pollak wrote:
> If you're cool with looking up the snippet by class/method name use the 
> plain old snippet.  If you want some control before the method gets 
> invoked (e.g., changing the behavior based on current session state), 
> use the dispatch snippet.

Is there a good example of this in the example sites somewhere? I'm a 
bit confused but intrigued.

> One-to-Many is:
> object otherThing extends MappedLongForeignKey(this, Other)
> 
> otherThing.obj: Can[Other] will give you the other, if it exists.
> 
> In other, to find all the things the refer to it:
> 
> def findThings: List[Thing] = Thing.findAll(Thing.otherThing, this.id 
> <http://this.id>)
> 
> Does that help?

Very much so. Thank you!

Chas.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to