josegonzalez/cakephp-version

getVersionId returns incorrect value

Opened this issue · 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.