1
0
mirror of synced 2025-01-19 15:01:40 +03:00

24 lines
539 B
PHP
Raw Normal View History

2007-06-27 17:45:05 +00:00
<?php
class Blog extends Doctrine_Record
{
public static function initMetadata($class)
2007-06-27 17:45:05 +00:00
{
$class->loadTemplate('Taggable');
2007-06-27 17:45:05 +00:00
}
}
class Taggable extends Doctrine_Template
{
public static function initMetadata($class)
2007-06-27 17:45:05 +00:00
{
2007-09-20 22:02:45 +00:00
//$this->hasMany('[Component]TagTemplate as Tag');
2007-06-27 17:45:05 +00:00
}
}
2007-09-20 20:31:49 +00:00
class TagTemplate extends Doctrine_Record
2007-06-27 17:45:05 +00:00
{
public static function initMetadata($class)
2007-06-27 17:45:05 +00:00
{
$class->setColumn('name', 'string', 100);
$class->setColumn('description', 'string');
2007-06-27 17:45:05 +00:00
}
}