* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseBulletin extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('bulletin'); $this->hasColumn('subject', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('content', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('note', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('subscribers_num', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('is_planned', 'boolean', null, array( 'type' => 'boolean', 'notnull' => true, 'default' => false, )); $this->hasColumn('planned_date', 'date', null, array( 'type' => 'date', )); $this->hasColumn('send_date', 'timestamp', null, array( 'type' => 'timestamp', )); $this->hasColumn('filename', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }