root/branches/0.9/models/Auth.php
| Revision 2353, 319 bytes (checked in by meus, 16 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | class 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.