setTableName('equipment'); $this->hasColumn('parent_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('description', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('main', 'boolean', null, array( 'type' => 'boolean', 'default' => false, 'notnull' => true, )); $this->hasColumn('priority', 'integer', null, array( 'type' => 'integer', 'default' => 0, 'notnull' => true, )); $this->hasColumn('permission', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('request_emails', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('indent_emails', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('meta_desc', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('meta_kw', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasMany('Generic_product as Products', array( 'local' => 'id', 'foreign' => 'equipment_id')); $this->hasMany('Request_product', array( 'local' => 'id', 'foreign' => 'equipment_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'fields' => array( 0 => 'name', ), 'unique' => true, )); $versionable0 = new Doctrine_Template_Versionable(); $this->actAs($timestampable0); $this->actAs($sluggable0); $this->actAs($versionable0); } }