* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseJobStyle extends sfDoctrineRecord { public function setTableDefinition() { $this->setTableName('job_style'); $this->hasColumn('name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasMany('PrepaymentCount as PrepaymentCounts', array( 'local' => 'id', 'foreign' => 'style_id')); $this->hasMany('Job as Jobs', array( 'local' => 'id', 'foreign' => 'style_id')); $this->hasMany('JobStylePrice as Prices', array( 'local' => 'id', 'foreign' => 'style_id')); } }