Changeset 4296
- Timestamp:
- 04/26/08 14:46:57 (14 months ago)
- Location:
- branches/0.11
- Files:
-
- 4 modified
-
lib/Doctrine/Connection.php (modified) (3 diffs)
-
lib/Doctrine/Connection/UnitOfWork.php (modified) (1 diff)
-
lib/Doctrine/Relation/LocalKey.php (modified) (1 diff)
-
tests/run.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Connection.php
r4265 r4296 973 973 $stmt = $this->prepare($query); 974 974 $stmt->execute($params); 975 975 976 return $stmt; 976 977 } else { … … 1007 1008 if ( ! empty($params)) { 1008 1009 $stmt = $this->prepare($query); 1009 //var_dump($params);1010 //echo $query."<br/>";1011 1010 $stmt->execute($params); 1012 1011 … … 1016 1015 1017 1016 $this->getAttribute(Doctrine::ATTR_LISTENER)->preExec($event); 1018 1019 1017 if ( ! $event->skipOperation) { 1020 1018 $count = $this->dbh->exec($query); -
branches/0.11/lib/Doctrine/Connection/UnitOfWork.php
r4294 r4296 596 596 throw new Doctrine_Connection_Exception("Couldn't get last insert identifier."); 597 597 } 598 599 598 $record->assignIdentifier($id); 600 599 } else { -
branches/0.11/lib/Doctrine/Relation/LocalKey.php
r4252 r4296 47 47 $id = $record->get($localFieldName); 48 48 49 if ( empty($id) || ! $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {49 if (is_null($id) || ! $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) { 50 50 $related = $this->getTable()->create(); 51 51 } else { -
branches/0.11/tests/run.php
r4291 r4296 63 63 $tickets->addTestCase(new Doctrine_Ticket_950_TestCase()); 64 64 $tickets->addTestCase(new Doctrine_Ticket_894_TestCase()); 65 $tickets->addTestCase(new Doctrine_Ticket_982_TestCase()); 65 66 $test->addTestCase($tickets); 66 67