wordpress-orm icon indicating copy to clipboard operation
wordpress-orm copied to clipboard

Get the last inserted id

Open CrochetFeve0251 opened this issue 3 years ago • 1 comments

When using Doctrine the convention is to set the Id in the Entity but that doesn't look to be the case in the library. Moreover there is no way to get it from the manager too. So i was thinking how we can get the last inserted ID from this library that looks like copying Doctrine logic?

CrochetFeve0251 avatar Jan 04 '22 17:01 CrochetFeve0251

When using Doctrine the convention is to set the Id in the Entity but that doesn't look to be the case in the library. Moreover there is no way to get it from the manager too. So i was thinking how we can get the last inserted ID from this library that looks like copying Doctrine logic?

I'm open to suggestions @CrochetFeve0251

rjjakes avatar Oct 27 '22 14:10 rjjakes