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 DbxrefTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.DbxrefTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('dbxref');
40: $this->setPhpName('Dbxref');
41: $this->setClassname('cli_db\\propel\\Dbxref');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('dbxref_dbxref_id_seq');
45:
46: $this->addPrimaryKey('dbxref_id', 'DbxrefId', 'INTEGER', true, null, null);
47: $this->addForeignKey('db_id', 'DbId', 'INTEGER', 'db', 'db_id', true, null, null);
48: $this->addColumn('accession', 'Accession', 'VARCHAR', true, 255, null);
49: $this->addColumn('version', 'Version', 'VARCHAR', true, 255, '');
50: $this->addColumn('description', 'Description', 'LONGVARCHAR', false, null, null);
51:
52: }
53:
54: 55: 56:
57: public function buildRelations()
58: {
59: $this->addRelation('Db', 'cli_db\\propel\\Db', RelationMap::MANY_TO_ONE, array('db_id' => 'db_id', ), 'CASCADE', null);
60: $this->addRelation('Feature', 'cli_db\\propel\\Feature', RelationMap::ONE_TO_MANY, array('dbxref_id' => 'dbxref_id', ), 'SET NULL', null, 'Features');
61: $this->addRelation('FeatureCvtermDbxref', 'cli_db\\propel\\FeatureCvtermDbxref', RelationMap::ONE_TO_MANY, array('dbxref_id' => 'dbxref_id', ), 'CASCADE', null, 'FeatureCvtermDbxrefs');
62: $this->addRelation('FeatureDbxref', 'cli_db\\propel\\FeatureDbxref', RelationMap::ONE_TO_MANY, array('dbxref_id' => 'dbxref_id', ), 'CASCADE', null, 'FeatureDbxrefs');
63: $this->addRelation('PubDbxref', 'cli_db\\propel\\PubDbxref', RelationMap::ONE_TO_MANY, array('dbxref_id' => 'dbxref_id', ), 'CASCADE', null, 'PubDbxrefs');
64: }
65:
66: }
67: