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 FeatureCvtermDbxrefTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.FeatureCvtermDbxrefTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('feature_cvterm_dbxref');
40: $this->setPhpName('FeatureCvtermDbxref');
41: $this->setClassname('cli_db\\propel\\FeatureCvtermDbxref');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('feature_cvterm_dbxref_feature_cvterm_dbxref_id_seq');
45:
46: $this->addPrimaryKey('feature_cvterm_dbxref_id', 'FeatureCvtermDbxrefId', 'INTEGER', true, null, null);
47: $this->addForeignKey('feature_cvterm_id', 'FeatureCvtermId', 'INTEGER', 'feature_cvterm', 'feature_cvterm_id', true, null, null);
48: $this->addForeignKey('dbxref_id', 'DbxrefId', 'INTEGER', 'dbxref', 'dbxref_id', true, null, null);
49:
50: }
51:
52: 53: 54:
55: public function buildRelations()
56: {
57: $this->addRelation('Dbxref', 'cli_db\\propel\\Dbxref', RelationMap::MANY_TO_ONE, array('dbxref_id' => 'dbxref_id', ), 'CASCADE', null);
58: $this->addRelation('FeatureCvterm', 'cli_db\\propel\\FeatureCvterm', RelationMap::MANY_TO_ONE, array('feature_cvterm_id' => 'feature_cvterm_id', ), 'CASCADE', null);
59: }
60:
61: }
62: