Commit bea3d563 authored by zYne's avatar zYne

--no commit message

--no commit message
parent d4e3567a
......@@ -14,16 +14,17 @@ class Taggable extends Doctrine_Template
{
public function setUp()
{
$this->hasMany('[Component]Tag as Tag');
$this->hasMany('[Component]TagTemplate as Tag');
}
}
class TagTemplate extends Doctrine_Template
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'));
......
<?php
class BlogTag extends Doctrine_Record
{
public function setUp() {
$this->hasMany('Photo', 'Phototag.photo_id');
}
public function setTableDefinition() {
$this->hasColumn('tag', 'string', 100);
}
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 100);
$this->hasColumn('description', 'string');
}
public function setUp()
{
$this->hasOne('Blog', 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