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 PubauthorTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'cli_db.map.PubauthorTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('pubauthor');
40: $this->setPhpName('Pubauthor');
41: $this->setClassname('cli_db\\propel\\Pubauthor');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('pubauthor_pubauthor_id_seq');
45:
46: $this->addPrimaryKey('pubauthor_id', 'PubauthorId', 'INTEGER', true, null, null);
47: $this->addForeignKey('pub_id', 'PubId', 'INTEGER', 'pub', 'pub_id', true, null, null);
48: $this->addColumn('rank', 'Rank', 'INTEGER', true, null, null);
49: $this->addColumn('editor', 'Editor', 'BOOLEAN', false, null, false);
50: $this->addColumn('surname', 'Surname', 'VARCHAR', true, 100, null);
51: $this->addColumn('givennames', 'Givennames', 'VARCHAR', false, 100, null);
52: $this->addColumn('suffix', 'Suffix', 'VARCHAR', false, 100, null);
53:
54: }
55:
56: 57: 58:
59: public function buildRelations()
60: {
61: $this->addRelation('Pub', 'cli_db\\propel\\Pub', RelationMap::MANY_TO_ONE, array('pub_id' => 'pub_id', ), 'CASCADE', null);
62: }
63:
64: }
65: