kohanaworld / zz-kohana-jelly

A flexible ORM for Kohana 3
http://jelly.jonathan-geiger.com
MIT License
4 stars 0 forks source link

wrong boolean format after setting #2

Closed biakaveron closed 13 years ago

biakaveron commented 13 years ago

Here is quick example:

    // load existing model
    $m = Jelly::factory($modelname, $id);
    // fill property with the same value
    $m->bool_property = $m->bool_property;
    $m->save();
    echo Database::instance()->last_query;

This will generate an Update query, but model data wasnt changed.

biakaveron commented 13 years ago

Fixed in f389a3bdd5c44c15c9ad49b8cadac78d29252d5f