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 CvtermTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.CvtermTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('cvterm');
40: $this->setPhpName('Cvterm');
41: $this->setClassname('cli_db\\propel\\Cvterm');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('cvterm_cvterm_id_seq');
45:
46: $this->addPrimaryKey('cvterm_id', 'CvtermId', 'INTEGER', true, null, null);
47: $this->addForeignKey('cv_id', 'CvId', 'INTEGER', 'cv', 'cv_id', true, null, null);
48: $this->addColumn('name', 'Name', 'VARCHAR', true, 1024, null);
49: $this->addColumn('definition', 'Definition', 'LONGVARCHAR', false, null, null);
50: $this->addColumn('dbxref_id', 'DbxrefId', 'INTEGER', true, null, null);
51: $this->addColumn('is_obsolete', 'IsObsolete', 'INTEGER', true, null, 0);
52: $this->addColumn('is_relationshiptype', 'IsRelationshiptype', 'INTEGER', true, null, 0);
53:
54: }
55:
56: 57: 58:
59: public function buildRelations()
60: {
61: $this->addRelation('Cv', 'cli_db\\propel\\Cv', RelationMap::MANY_TO_ONE, array('cv_id' => 'cv_id', ), 'CASCADE', null);
62: $this->addRelation('BiomaterialRelationship', 'cli_db\\propel\\BiomaterialRelationship', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), null, null, 'BiomaterialRelationships');
63: $this->addRelation('Biomaterialprop', 'cli_db\\propel\\Biomaterialprop', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Biomaterialprops');
64: $this->addRelation('Contact', 'cli_db\\propel\\Contact', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), null, null, 'Contacts');
65: $this->addRelation('Feature', 'cli_db\\propel\\Feature', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Features');
66: $this->addRelation('FeatureCvterm', 'cli_db\\propel\\FeatureCvterm', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'cvterm_id', ), 'CASCADE', null, 'FeatureCvterms');
67: $this->addRelation('FeatureCvtermprop', 'cli_db\\propel\\FeatureCvtermprop', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'FeatureCvtermprops');
68: $this->addRelation('Protocol', 'cli_db\\propel\\Protocol', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Protocols');
69: $this->addRelation('Pub', 'cli_db\\propel\\Pub', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Pubs');
70: $this->addRelation('PubRelationship', 'cli_db\\propel\\PubRelationship', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'PubRelationships');
71: $this->addRelation('Pubprop', 'cli_db\\propel\\Pubprop', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Pubprops');
72: $this->addRelation('Synonym', 'cli_db\\propel\\Synonym', RelationMap::ONE_TO_MANY, array('cvterm_id' => 'type_id', ), 'CASCADE', null, 'Synonyms');
73: }
74:
75: }
76: