Update README.md
This commit is contained in:
parent
8aa891151b
commit
e2ff7e02f5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue