root/tags/0.10.0/models/Auth.php

Revision 2353, 319 bytes (checked in by meus, 16 months ago)

moved all models to trunk/models. removed some old invalid testcases

Line 
1<?php
2class Auth extends Doctrine_Record 
3{
4    public function setTableDefinition() 
5    {
6        $this->hasColumn('roleid', 'integer', 10);
7        $this->hasColumn('name', 'string', 50);
8    }
9    public function setUp() 
10    {
11        $this->hasOne('Role', array('local' => 'roleid', 'foreign' => 'id'));
12    }
13}
Note: See TracBrowser for help on using the browser.