* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseSubscriber extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('subscriber'); $this->hasColumn('profile_id', 'integer', null, array( 'type' => 'integer', 'notnull' => false, )); $this->hasColumn('name', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->hasColumn('email', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'unique' => true, 'length' => 255, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Profile', array( 'local' => 'profile_id', 'foreign' => 'id', 'onDelete' => 'CASCADE')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }