* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseRepresentant extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('representant'); $this->hasColumn('first_name', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->hasColumn('last_name', 'string', 255, array( 'type' => 'string', 'length' => 255, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasMany('Profile as Profiles', array( 'local' => 'id', 'foreign' => 'representant_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }