josegonzalez / cakephp-version

CakePHP3: plugin that facilitates versioned database entities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getVersionId returns incorrect value

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