Changeset 4517

Show
Ignore:
Timestamp:
06/13/08 16:17:21 (13 months ago)
Author:
jwage
Message:

fixes #1118 - Added test coverage and fixed.

Location:
branches/0.11
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Import/Schema.php

    r4502 r4517  
    512512                        if (isset($array[$columnClassName]) && !isset($array[$className]['relations'][$columnClassName])) { 
    513513                            $array[$className]['relations'][$columnClassName] = array(); 
     514 
     515                            // Set the detected foreign key type and length to the same as the primary key 
     516                            // of the related table 
     517                            $array[$className]['columns'][$column['name']]['type'] = $array[$columnClassName]['columns']['id']['type']; 
     518                            $array[$className]['columns'][$column['name']]['length'] = $array[$columnClassName]['columns']['id']['length']; 
    514519                        } 
    515520                    } 
  • branches/0.11/tests/run.php

    r4514 r4517  
    7979$tickets->addTestCase(new Doctrine_Ticket_1121_TestCase()); 
    8080$tickets->addTestCase(new Doctrine_Ticket_1134_TestCase()); 
     81$tickets->addTestCase(new Doctrine_Ticket_1118_TestCase()); 
    8182 
    8283$test->addTestCase($tickets);