1
0
mirror of synced 2024-12-13 14:56:01 +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_Entity
2007-06-27 21:45:05 +04:00
{
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
}
}
class TagTemplate extends Doctrine_Entity
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
}
}