* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseBannerClick extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('banner_click'); $this->hasColumn('banner_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('ip', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->hasColumn('url', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->hasColumn('user_agent', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Banner', array( 'local' => 'banner_id', 'foreign' => 'id', 'onDelete' => 'CASCADE')); $timestampable0 = new Doctrine_Template_Timestampable(array( 'updated' => array( 'disabled' => true, ), )); $this->actAs($timestampable0); } }