root/tags/0.10.0/models/BlogTag.php
| Revision 2581, 314 bytes (checked in by zYne, 16 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | class BlogTag extends Doctrine_Record |
| 3 | { |
| 4 | public function setTableDefinition() |
| 5 | { |
| 6 | $this->hasColumn('name', 'string', 100); |
| 7 | $this->hasColumn('description', 'string'); |
| 8 | } |
| 9 | public function setUp() |
| 10 | { |
| 11 | $this->hasOne('Blog', array('onDelete' => 'CASCADE')); |
| 12 | } |
| 13 | } |
Note: See TracBrowser
for help on using the browser.