Changeset 4296

Show
Ignore:
Timestamp:
04/26/08 14:46:57 (14 months ago)
Author:
romanb
Message:

Fixed #982.

Location:
branches/0.11
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Connection.php

    r4265 r4296  
    973973                $stmt = $this->prepare($query); 
    974974                $stmt->execute($params); 
     975 
    975976                return $stmt; 
    976977            } else { 
     
    10071008            if ( ! empty($params)) { 
    10081009                $stmt = $this->prepare($query); 
    1009                 //var_dump($params); 
    1010                 //echo $query."<br/>"; 
    10111010                $stmt->execute($params); 
    10121011 
     
    10161015 
    10171016                $this->getAttribute(Doctrine::ATTR_LISTENER)->preExec($event); 
    1018  
    10191017                if ( ! $event->skipOperation) { 
    10201018                    $count = $this->dbh->exec($query); 
  • branches/0.11/lib/Doctrine/Connection/UnitOfWork.php

    r4294 r4296  
    596596                throw new Doctrine_Connection_Exception("Couldn't get last insert identifier."); 
    597597            } 
    598  
    599598            $record->assignIdentifier($id); 
    600599        } else { 
  • branches/0.11/lib/Doctrine/Relation/LocalKey.php

    r4252 r4296  
    4747        $id = $record->get($localFieldName); 
    4848 
    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)) { 
    5050            $related = $this->getTable()->create(); 
    5151        } else { 
  • branches/0.11/tests/run.php

    r4291 r4296  
    6363$tickets->addTestCase(new Doctrine_Ticket_950_TestCase()); 
    6464$tickets->addTestCase(new Doctrine_Ticket_894_TestCase()); 
     65$tickets->addTestCase(new Doctrine_Ticket_982_TestCase()); 
    6566$test->addTestCase($tickets); 
    6667