Changeset 3848

Show
Ignore:
Timestamp:
02/20/08 00:38:14 (17 months ago)
Author:
jwage
Message:

fixes #438 in 0.10 branch. Related to #438

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Relation/Parser.php

    r3291 r3848  
    398398                } 
    399399            } else { 
    400                 if ($def['local'] !== $localIdColumnName &&  
    401                     $def['type'] == Doctrine_Relation::ONE) { 
     400                if (count($localIdentifierColumnNames) > 0 || ($def['local'] !== $localIdColumnName &&  
     401                    $def['type'] == Doctrine_Relation::ONE)) { 
    402402                    $def['localKey'] = true; 
    403403                }