             }
 
             try modify(row)
-            type(of: entity).didUpdate(entity: entity)
+            E.didUpdate(entity: entity)
             entity.didUpdate()
         } else {
             // create

                entity.id = id
            }

            type(of: entity).didCreate(entity: entity)
            entity.didCreate()
        }
        entity.exists = true

                // for models without them
                entity.id = Identifier(UUID.random())
            }
            try E.willCreate(entity: entity)
            try entity.willCreate()
            var row = try entity.makeRow()
            try row.set(E.idKey, entity.id)
