Changeset 4769

Show
Ignore:
Timestamp:
08/12/08 19:22:23 (11 months ago)
Author:
romanb
Message:

Fixed #1311.

Files:
1 modified

Legend:

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

    r4768 r4769  
    728728                $query->leftJoin(get_class($this) . '.' . $name); 
    729729            } 
    730             $query->where(implode(' = ? AND ', $this->getTable()->getIdentifierColumnNames()) . ' = ?'); 
     730            $query->where(implode(' = ? AND ', (array)$this->getTable()->getIdentifier()) . ' = ?'); 
    731731            $this->clearRelated(); 
    732732            $record = $query->fetchOne($id);