j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

After updating, I'm not getting the new field value #323

Closed sanmayad closed 7 years ago

sanmayad commented 7 years ago

I recently added a new column to my table and then updated a form that submits/update new values to that table. This works fine. The values are being inserted to DB.

But then when retriving the data from DB still it's keeping the new column in dirty_state and not showing me any value at all for that column

My config:

ORM::configure('caching', true); ORM::configure('caching_auto_clear', true);

treffynnon commented 7 years ago

Please include the exact code you're using to query, update and then query the record again.

sanmayad commented 6 years ago

Normally there's some old code which directly enters data with mysqli and then I use idiorm to fetch those data. Any query that's not passed through idiorm doesn't show on fetching. Is there a way just to stop data/state caching for now. Later I will debug the issue.

treffynnon commented 6 years ago

I am struggling to understand what you're actually doing here. Please include the exact code you're using to query with Idiorm and your full Idiorm configuration.

sanmayad commented 6 years ago

Works fine with the new release though :)