1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
zYne 2007-09-20 20:31:49 +00:00
parent d4e3567ab9
commit bea3d56374
2 changed files with 12 additions and 8 deletions

View File

@ -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'));

View File

@ -1,10 +1,13 @@
<?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'));
}
}