12 lines
263 B
PHP
12 lines
263 B
PHP
<?php
|
|
class Role extends Doctrine_Record
|
|
{
|
|
public static function initMetadata($class)
|
|
{
|
|
$class->setColumn('name', 'string', 20, array('unique' => true));
|
|
$class->hasMany('Auth', array('local' => 'id', 'foreign' => 'roleid'));
|
|
}
|
|
|
|
}
|
|
|