Skip to content

about save method and model's id #264

@class4cxy

Description

@class4cxy

hi :

my question is after i call the model.save() method, how can i get the current model's id ? and mysql db is design to auto_increment.
i was try to use "SELECT LAST_INSERT_ID() as id FROM " after save's callback, but it dosen't suit when concurrent request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions