Changeset 4770
- Timestamp:
- 08/13/08 06:11:04 (11 months ago)
- Location:
- branches/1.0
- Files:
-
- 1 added
- 3 modified
-
lib/Doctrine/Record.php (modified) (2 diffs)
-
tests/run.php (modified) (1 diff)
-
tests/Ticket/1305TestCase.php (added)
-
tests/Ticket/923TestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Record.php
r4769 r4770 941 941 if ($this->_isValueModified($type, $old, $value)) { 942 942 if ($value === null) { 943 $value = self::$_null; 943 $default = $this->_table->getDefaultValueOf($fieldName); 944 $value = ($default === null) ? self::$_null : $default; 944 945 } 945 946 … … 1254 1255 } 1255 1256 } 1257 1256 1258 $map = $this->_table->inheritanceMap; 1257 1259 foreach ($map as $k => $v) { -
branches/1.0/tests/run.php
r4759 r4770 106 106 $tickets->addTestCase(new Doctrine_Ticket_1296_TestCase()); 107 107 $tickets->addTestCase(new Doctrine_Ticket_1304_TestCase()); 108 $tickets->addTestCase(new Doctrine_Ticket_1305_TestCase()); 108 109 109 110 $test->addTestCase($tickets); -
branches/1.0/tests/Ticket/923TestCase.php
r4154 r4770 77 77 ->offset(0) 78 78 ->execute(); 79 80 $this->assertEqual($result->count(), 3); 79 81 } catch (Exception $e) { 80 82 $this->fail($e->getMessage()); 81 83 } 82 83 $this->assertEqual($result->count(), 3);84 84 } 85 85 }