                 entity.id = id
             }
 
-            type(of: entity).didCreate(entity: entity)
+            E.didCreate(entity: entity)
             entity.didCreate()
         }
         entity.exists = true

            // permenantly delete the model
            query.action = .delete
            try query.filter(E.idKey, id)
            try type(of: entity).willDelete(entity: entity)
            try entity.willDelete()
            try query.raw()
            type(of: entity).didDelete(entity: entity)
            entity.didDelete()
            entity.exists = false
        }

                // 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)
