* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BasePage extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('page'); $this->hasColumn('title', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('text', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('is_deletable', 'boolean', null, array( 'type' => 'boolean', 'notnull' => false, 'default' => true, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'fields' => array( 0 => 'title', ), 'unique' => true, 'builder' => array( 0 => 'saInflector', 1 => 'urlize', ), )); $this->actAs($timestampable0); $this->actAs($sluggable0); } }