12 lines
288 B
PHP
12 lines
288 B
PHP
<?php
|
|
class Auth extends Doctrine_Entity
|
|
{
|
|
public static function initMetadata($class)
|
|
{
|
|
$class->setColumn('roleid', 'integer', 10);
|
|
$class->setColumn('name', 'string', 50);
|
|
$class->hasOne('Role', array('local' => 'roleid', 'foreign' => 'id'));
|
|
}
|
|
}
|
|
|