[Lift] Re: NULLable MappedForeignKey

2009-06-05 Thread DavidV
As you can probably tell from the question, I'm still a beginning programmer and just learning Scala/Lift, however, I do have a basic understanding of the difference between option types and null references. In this particular case, there are definite cases where the field will be assigned a valu

[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 G

[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 wrote: > > What is the proper way to create a MappedForeignKey that is optional?