kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 58 forks source link

Updating cache record when used with non-numeric primary keys bug. #47

Closed TitasGailius closed 8 years ago

TitasGailius commented 8 years ago

If your table has non-numeric primary key (i.e. UUID) incorrect SQL is generated.

Illuminate\Database\QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column '000ba0f1' in 'where clause' (SQL: UPDATEusersSETpost_count=post_count+ 1 WHEREid= 000ba0f1-edd3-4e67-96cb-40c4ff701f67)'

kirkbushell commented 8 years ago

Thanks for this :)