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 BiomaterialpropTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.BiomaterialpropTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('biomaterialprop');
40: $this->setPhpName('Biomaterialprop');
41: $this->setClassname('cli_db\\propel\\Biomaterialprop');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('biomaterialprop_biomaterialprop_id_seq');
45:
46: $this->addPrimaryKey('biomaterialprop_id', 'BiomaterialpropId', 'INTEGER', true, null, null);
47: $this->addForeignKey('biomaterial_id', 'BiomaterialId', 'INTEGER', 'biomaterial', 'biomaterial_id', true, null, null);
48: $this->addForeignKey('type_id', 'TypeId', 'INTEGER', 'cvterm', 'cvterm_id', true, null, null);
49: $this->addColumn('value', 'Value', 'LONGVARCHAR', false, null, null);
50: $this->addColumn('rank', 'Rank', 'INTEGER', true, null, 0);
51:
52: }
53:
54: 55: 56:
57: public function buildRelations()
58: {
59: $this->addRelation('Biomaterial', 'cli_db\\propel\\Biomaterial', RelationMap::MANY_TO_ONE, array('biomaterial_id' => 'biomaterial_id', ), 'CASCADE', null);
60: $this->addRelation('Cvterm', 'cli_db\\propel\\Cvterm', RelationMap::MANY_TO_ONE, array('type_id' => 'cvterm_id', ), 'CASCADE', null);
61: }
62:
63: }
64: