<?php
class Loginform extends Doctrine_Record {
public function setTableDefinition() {
$this->setTableName('dub_loginform');
$this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'unsigned' => '1', 'primary' => true, 'autoincrement' => true, 'length' => '4'));
$this->hasColumn('content_id', 'integer', 4, array('type' => 'integer', 'unsigned' => '1', 'length' => '4'));
$this->hasColumn('show_username', 'integer', 1);
$this->hasColumn('show_logout_button', 'integer', 1);
$this->hasColumn('show_form', 'integer', 1);
$this->hasColumn('redirect_path', 'string', 255);
$this->hasColumn('css', 'string', 255);
}
public function setUp() {
parent::setUp();
$this->hasOne('Dub_Base_Content as Content', array(
'local' => 'content_id',
'foreign' => 'id',
'onDelete' => 'CASCADE'
));
}
}