1
0
mirror of synced 2024-12-13 06:46:03 +03:00
This commit is contained in:
romanb 2008-05-25 20:57:56 +00:00
parent f9938ea6fd
commit 07a166201d

View File

@ -20,20 +20,8 @@ class ForumUser extends Doctrine_Entity
$class->mapColumn('id', 'integer', 4, array(
'primary' => true,
'autoincrement' => true));
$class->mapColumn('username', 'string', 50, array(
'accessor' => 'getUsernameCustom',
'mutator' => 'setUsernameCustom'));
$class->mapColumn('username', 'string', 50, array());
}
public function getUsernameCustom()
{
return $this->rawGetField('username') . "!";
}
public function setUsernameCustom($username)
{
$this->rawSetField('username', $username . "?");
}
}