Changeset 5323

Show
Ignore:
Timestamp:
12/23/08 14:28:37 (6 months ago)
Author:
guilhermeblanco
Message:

[1.0, 1.1] Fixed isModified casting that was missing for integer values. Thanks Hannes for reporting that

Location:
branches
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Record.php

    r5301 r5323  
    11781178        } else if (in_array($type, array('decimal', 'float')) && is_numeric($old) && is_numeric($new)) { 
    11791179            return $old * 100 != $new * 100; 
     1180        } else if (in_array($type, array('integer', 'int')) && is_numeric($old) && is_numeric($new)) { 
     1181            return (int) $old !== (int) $new; 
    11801182        } else { 
    11811183            return $old !== $new; 
  • branches/1.1/lib/Doctrine/Record.php

    r5311 r5323  
    13681368        } else if (in_array($type, array('decimal', 'float')) && is_numeric($old) && is_numeric($new)) { 
    13691369            return $old * 100 != $new * 100; 
     1370        } else if (in_array($type, array('integer', 'int')) && is_numeric($old) && is_numeric($new)) { 
     1371            return (int) $old !== (int) $new; 
    13701372        } else { 
    13711373            return $old !== $new;