Blog.php 673 Bytes
Newer Older
zYne's avatar
zYne committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
class Blog extends Doctrine_Record
{
    public function setTableDefinition()
    {
    	
    }
    public function setUp()
    {
        $this->loadTemplate('Taggable');
    }
}
class Taggable extends Doctrine_Template
{
    public function setUp()
    {
zYne's avatar
zYne committed
17
        //$this->hasMany('[Component]TagTemplate as Tag');
zYne's avatar
zYne committed
18 19
    }
}
zYne's avatar
zYne committed
20
class TagTemplate extends Doctrine_Record
zYne's avatar
zYne committed
21 22 23 24 25 26
{
    public function setTableDefinition()
    {
        $this->hasColumn('name', 'string', 100);
        $this->hasColumn('description', 'string');
    }
zYne's avatar
zYne committed
27

zYne's avatar
zYne committed
28 29
    public function setUp()
    {
zYne's avatar
zYne committed
30
        //$this->hasOne('[Component]', array('onDelete' => 'CASCADE'));
zYne's avatar
zYne committed
31 32
    }
}