BlogTag.php 314 Bytes
Newer Older
1 2 3
<?php 
class BlogTag extends Doctrine_Record
{
zYne's avatar
zYne committed
4 5 6 7 8 9 10 11 12
    public function setTableDefinition()
    {
        $this->hasColumn('name', 'string', 100);
        $this->hasColumn('description', 'string');
    }
    public function setUp()
    {
        $this->hasOne('Blog', array('onDelete' => 'CASCADE'));
    }
13
}