Changeset 3741 for trunk/tests/models

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

more experiments with the new testsuite.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/models/forum/ForumUser.php

    r3739 r3741  
    99                'discriminatorColumn' => 'dtype', 
    1010                'discriminatorMap' => array( 
    11                         1 => 'ForumUser', 
    12                         2 => 'ForumAdministrator') 
     11                        'user' => 'ForumUser', 
     12                        'admin' => 'ForumAdministrator') 
    1313                )); 
    1414        $class->setSubclasses(array('ForumAdministrator')); 
     15         
     16        // the discriminator column 
     17        $class->addMappedColumn('dtype', 'string', 50); 
    1518         
    1619        // property mapping 
     
    1922                'autoincrement' => true)); 
    2023        $class->addMappedColumn('username', 'string', 50); 
     24         
    2125    } 
    2226}