4

Every time I see this kind of flow:
1) Insert a new record
2) Get MAX(Id) as the inserted records Id
3) Operate with the result (possibly adding related entities and such)

I sigh so hard, it hurts.

Comments
  • 4
    Do you need a 🔨?

    Beat some sense into them
Add Comment