Changeset 3826

Show
Ignore:
Timestamp:
02/17/08 14:41:34 (2 years ago)
Author:
romanb
Message:

Patched a class table inheritance validation bug

Location:
branches/0.10
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Validator.php

    r3310 r3826  
    113113                    || $name == 'sequence' 
    114114                    || $name == 'zerofill' 
     115                    || $name == 'owner' 
    115116                    || $name == 'scale') { 
    116117                    continue; 
  • branches/0.10/tests/ClassTableInheritanceTestCase.php

    r3227 r3826  
    201201    } 
    202202     
     203    public function testValidationSkipsOwnerOption() 
     204    { 
     205        $this->conn->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_ALL); 
     206        $record = $this->conn->getTable('CTITest')->find(1); 
     207        try { 
     208            $record->name = "winston"; 
     209            $this->assertTrue($record->isValid()); 
     210            $this->pass(); 
     211        } catch (Exception $e) { 
     212            $this->fail(); 
     213        } 
     214        $this->conn->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_NONE); 
     215    } 
     216     
    203217    public function testDeleteIssuesQueriesOnAllJoinedTables() 
    204218    {