These are chat archives for go-gitea/gitea

13th
Sep 2015
Thomas Boerger
@tboerger
Sep 13 2015 18:52
@lunny @Unknwon what is the best indicator to check if i've got a new instance of an xorm model within an template or router?
无闻
@Unknwon
Sep 13 2015 18:56
I don't understand the question ...
Thomas Boerger
@tboerger
Sep 13 2015 19:11
my_model_struct.IsNewRecord or something like that? which returns true if it's a not persisted record
and maybe the opposite
Thomas Boerger
@tboerger
Sep 13 2015 19:19
ah wait, new records are not emty structs right?
Thomas Boerger
@tboerger
Sep 13 2015 19:31
btw, a pretty nice tool to avoid the usage of an orm :) https://github.com/drone/sqlgen
无闻
@Unknwon
Sep 13 2015 22:46
Sorry I have no idea ...