atk4 / mastercrud

Manipulates ATK CRUD through the force of references
https://atk4.org
MIT License
9 stars 7 forks source link

Fix hardcoded ID field name #43

Open rickyosser opened 8 months ago

rickyosser commented 8 months ago

Fix idField naming for those DBs where 'id' isn't used as the index-field.

rickyosser commented 8 months ago

Needs more testing! :)

rickyosser commented 8 months ago

Ok, if you don't define the idField in the model the MasterCrud uses the "id" field as the index. Which is the way it should be. There was never a reason to hard-code it. If the idField is defined in the model though this is needed for getting the correct table index into the crud.