1: <?php
2:
3: namespace cli_db\propel\map;
4:
5: use \RelationMap;
6: use \TableMap;
7:
8:
9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
21: class FeatureCvtermTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.FeatureCvtermTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('feature_cvterm');
40: $this->setPhpName('FeatureCvterm');
41: $this->setClassname('cli_db\\propel\\FeatureCvterm');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('feature_cvterm_feature_cvterm_id_seq');
45:
46: $this->addPrimaryKey('feature_cvterm_id', 'FeatureCvtermId', 'INTEGER', true, null, null);
47: $this->addForeignKey('feature_id', 'FeatureId', 'INTEGER', 'feature', 'feature_id', true, null, null);
48: $this->addForeignKey('cvterm_id', 'CvtermId', 'INTEGER', 'cvterm', 'cvterm_id', true, null, null);
49: $this->addForeignKey('pub_id', 'PubId', 'INTEGER', 'pub', 'pub_id', true, null, null);
50: $this->addColumn('is_not', 'IsNot', 'BOOLEAN', true, null, false);
51: $this->addColumn('rank', 'Rank', 'INTEGER', true, null, 0);
52:
53: }
54:
55: 56: 57:
58: public function buildRelations()
59: {
60: $this->addRelation('Cvterm', 'cli_db\\propel\\Cvterm', RelationMap::MANY_TO_ONE, array('cvterm_id' => 'cvterm_id', ), 'CASCADE', null);
61: $this->addRelation('Feature', 'cli_db\\propel\\Feature', RelationMap::MANY_TO_ONE, array('feature_id' => 'feature_id', ), 'CASCADE', null);
62: $this->addRelation('Pub', 'cli_db\\propel\\Pub', RelationMap::MANY_TO_ONE, array('pub_id' => 'pub_id', ), 'CASCADE', null);
63: $this->addRelation('FeatureCvtermDbxref', 'cli_db\\propel\\FeatureCvtermDbxref', RelationMap::ONE_TO_MANY, array('feature_cvterm_id' => 'feature_cvterm_id', ), 'CASCADE', null, 'FeatureCvtermDbxrefs');
64: $this->addRelation('FeatureCvtermPub', 'cli_db\\propel\\FeatureCvtermPub', RelationMap::ONE_TO_MANY, array('feature_cvterm_id' => 'feature_cvterm_id', ), 'CASCADE', null, 'FeatureCvtermPubs');
65: $this->addRelation('FeatureCvtermprop', 'cli_db\\propel\\FeatureCvtermprop', RelationMap::ONE_TO_MANY, array('feature_cvterm_id' => 'feature_cvterm_id', ), 'CASCADE', null, 'FeatureCvtermprops');
66: }
67:
68: }
69: