Source

zf-form-builder / www / system / modules / blog / library / Base / EntryTag.php

Full commit
<?php


abstract class Blog_Base_EntryTag extends DoctrineX_Record
{
    public function setTableDefinition()
    {
        $this->setTableName('blog__entry_tag');
        $this->hasColumn('entry_id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('tag_id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('Blog_Entry', array(
             'local' => 'entry_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

        $this->hasOne('Blog_Tag', array(
             'local' => 'tag_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));
    }
}