1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests_old/models/Blog.php

24 lines
539 B
PHP
Raw Normal View History

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