Update README.md

This commit is contained in:
Ryan Coyne 2017-12-01 15:16:59 -05:00 committed by GitHub
parent 8aa891151b
commit e2ff7e02f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class AuditFields: PostgresStORM {
// The outer most class does not need to override init & call didInitializeSuperclass. This helps with identifying the id in the model.
class TestUser2: AuditFields {
// Notice we now do not need to put id at the top. However, this is backwards compatable, meaning if you do not want to subclass, or if someone updates & has the same models as configured before, they do not need to add any extra code to set the primaryKeyLabel.
// In this example we have id at the top but that is not mandatory now if you implement the primaryKeyLabel overrided function.
var id : Int? = nil
var firstname : String? = nil {
didSet {