1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/Blog.php
2007-09-20 22:02:45 +00:00

33 lines
673 B
PHP

<?php
class Blog extends Doctrine_Record
{
public function setTableDefinition()
{
}
public function setUp()
{
$this->loadTemplate('Taggable');
}
}
class Taggable extends Doctrine_Template
{
public function setUp()
{
//$this->hasMany('[Component]TagTemplate as Tag');
}
}
class TagTemplate extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 100);
$this->hasColumn('description', 'string');
}
public function setUp()
{
//$this->hasOne('[Component]', array('onDelete' => 'CASCADE'));
}
}