cakephp-version icon indicating copy to clipboard operation
cakephp-version copied to clipboard

getVersionId returns incorrect value

Open GaTioo opened this issue 4 years ago • 0 comments

Hi,

I'm using this functionality, but seems to have a little problem. In this method there is query which is getting the last version_id and increase it with 1, but it's ordering by "id desc" which in my case is not correct, because my id column is not integer - it's uuid. Is it possible to make it sort by vendor_id or to be able to pass the ordering column from the config?

Thanks.

GaTioo avatar Apr 26 '21 14:04 GaTioo