Commit d9b9a5af authored by zYne's avatar zYne

--no commit message

--no commit message
parent 858c1c07
<?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]Tag as Tag');
}
}
class TagTemplate extends Doctrine_Template
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 100);
$this->hasColumn('description', 'string');
}
public function setUp()
{
$this->hasOne('[Component]', array('onDelete' => 'CASCADE'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment