Changeset 4417 for trunk/tests/models

Show
Ignore:
Timestamp:
05/24/08 18:10:45 (8 months ago)
Author:
romanb
Message:

refactorings. merged hydration bugfix from 0.11.

Files:
1 modified

Legend:

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

    r4364 r4417  
    2121                'primary' => true, 
    2222                'autoincrement' => true)); 
    23         $class->mapColumn('username', 'string', 50); 
     23        $class->mapColumn('username', 'string', 50, array('accessor' => 'getUsernameCustom')); 
    2424         
    2525    } 
    26     /* 
    27     public function getUsername() 
     26     
     27    public function getUsernameCustom() 
    2828    { 
    29         return $this->rawGet('username') . "!"; 
     29        return $this->rawGetField('username') . "!"; 
    3030    } 
    31     */ 
     31     
    3232}