Changeset 4886

Show
Ignore:
Timestamp:
09/08/08 19:09:22 (10 months ago)
Author:
jwage
Message:

fixes #1431

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Connection/UnitOfWork.php

    r4826 r4886  
    391391                    $obj->save($this->conn); 
    392392 
    393                     /** Can this be removed? 
    394393                    $id = array_values($obj->identifier()); 
    395394 
    396                     foreach ((array) $rel->getLocal() as $k => $field) { 
    397                         $record->set($field, $id[$k]); 
     395                    if ( ! empty($id)) { 
     396                        foreach ((array) $rel->getLocal() as $k => $field) { 
     397                            if (isset($id[$k]) && $id[$k]) { 
     398                                $record->set($field, $id[$k]); 
     399                            } 
     400                        } 
    398401                    } 
    399                     */ 
    400402                } 
    401403            }