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