1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/Role.php

14 lines
294 B
PHP
Raw Normal View History

<?php
class Role extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 20, array('unique' => true));
}
public function setUp()
{
$this->hasMany('Auth', array('local' => 'id', 'foreign' => 'roleid'));
}
}