Trac

Changeset 4780 for branches/1.0

Show
Ignore:
Timestamp:
08/19/08 03:25:03 (3 months ago)
Author:
guilhermeblanco
Message:

Added coverage to ticket #1131. Unable to reproduce the issue.
Fixed wrong variable name in Doctrine_Export*::getNotNullFieldDeclaration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/Doctrine/Export.php

    r4779 r4780  
    786786    public function getNotNullFieldDeclaration(array $definition) 
    787787    { 
    788         return (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; 
     788        return (isset($definition['notnull']) && $definition['notnull']) ? ' NOT NULL' : ''; 
    789789    } 
    790790     
  • branches/1.0/lib/Doctrine/Export/Mssql.php

    r4779 r4780  
    266266    public function getNotNullFieldDeclaration(array $definition) 
    267267    { 
    268         return (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ' NULL'; 
     268        return (isset($definition['notnull']) && $definition['notnull']) ? ' NOT NULL' : ' NULL'; 
    269269    } 
    270270} 
  • branches/1.0/tests/run.php

    r4778 r4780  
    9494$tickets->addTestCase(new Doctrine_Ticket_1123_TestCase()); 
    9595$tickets->addTestCase(new Doctrine_Ticket_1124_TestCase()); 
     96$tickets->addTestCase(new Doctrine_Ticket_1131_TestCase()); 
    9697$tickets->addTestCase(new Doctrine_Ticket_1133_TestCase()); 
    9798$tickets->addTestCase(new Doctrine_Ticket_1160_TestCase());