[Lift] Re: Write access to the id field of ProtoUser (for testing)

2009-05-11 Thread erik.karls...@iki.fi
That work> A hah!  I had forgotten that I'd done this.  Try the following: > > myUser.runSafe { >   myUser.id(55L) > > } > Now it works and thanks for the explanation!! br, - Erik > Mapper supports read and write access control on a field by field bases. >  You can put in complex logic (e.g.,

[Lift] Re: Write access to the id field of ProtoUser (for testing)

2009-05-11 Thread David Pollak
On Mon, May 11, 2009 at 4:10 AM, erik.karls...@iki.fi < erik.b.karls...@gmail.com> wrote: > > Hi, > > > New users are moderated to avoid spam... on weekends, it may take up to a > > day for postings to appear on list. > Ok, sorry for the spam then ;) > > > You should be able to do: > > > > myUserI

[Lift] Re: Write access to the id field of ProtoUser (for testing)

2009-05-11 Thread erik.karls...@iki.fi
Hi, > New users are moderated to avoid spam... on weekends, it may take up to a > day for postings to appear on list. Ok, sorry for the spam then ;) > You should be able to do: > > myUserInstance.id(55L) > > That should set it to 55. I try to do this in my unit test: val u2 = User.create u2.id

[Lift] Re: Write access to the id field of ProtoUser (for testing)

2009-05-10 Thread David Pollak
On Sun, May 10, 2009 at 3:17 AM, erik.karls...@iki.fi < erik.b.karls...@gmail.com> wrote: > > Hi, > > It may happen that this post appears twice to this forum - in that > case sorry for the double posting ;) New users are moderated to avoid spam... on weekends, it may take up to a day for postin