[Lift] Re: NULLable MappedForeignKey

2009-06-04 Thread David Pollak
All MappedForeignKeys are Nullable.
If you've got
object theUser extends MappedLongForeignKey(this, User)

You can set the field to null with:

theUser(Empty)

Does that help?

On Thu, Jun 4, 2009 at 8:21 AM, DavidV david.v.villa...@gmail.com wrote:


 What is the proper way to create a MappedForeignKey that is optional?

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: NULLable MappedForeignKey

2009-06-04 Thread Joe Wass

Just to check -- are you familiar with the difference between option
types and null references in scala? It's an important distinction and
it's very important with Lift.

Joe

--~--~-~--~~~---~--~~
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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---