1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/Auth.php

12 lines
288 B
PHP
Raw Normal View History

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