2008-02-09 02:20:35 +03:00
|
|
|
<?php
|
|
|
|
class CmsUser extends Doctrine_Record
|
|
|
|
{
|
|
|
|
public static function initMetadata($class)
|
|
|
|
{
|
2008-02-16 22:10:16 +03:00
|
|
|
$class->mapColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
|
|
|
|
$class->mapColumn('username', 'string', 255);
|
|
|
|
$class->mapColumn('name', 'string', 255);
|
2008-05-06 17:41:22 +04:00
|
|
|
|
|
|
|
$class->hasMany('CmsPhonenumber as phonenumbers', array(
|
|
|
|
'local' => 'id', 'foreign' => 'user_id'));
|
2008-02-09 02:20:35 +03:00
|
|
|
}
|
2008-02-15 03:57:34 +03:00
|
|
|
}
|