1: <?php
2:
3: namespace cli_db\propel\map;
4:
5: use \RelationMap;
6: use \TableMap;
7:
8:
9: /**
10: * This class defines the structure of the 'cv' table.
11: *
12: *
13: *
14: * This map class is used by Propel to do runtime db structure discovery.
15: * For example, the createSelectSql() method checks the type of a given column used in an
16: * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
17: * (i.e. if it's a text column type).
18: *
19: * @package propel.generator.cli_db.map
20: */
21: class CvTableMap extends TableMap
22: {
23:
24: /**
25: * The (dot-path) name of this class
26: */
27: const CLASS_NAME = 'cli_db.map.CvTableMap';
28:
29: /**
30: * Initialize the table attributes, columns and validators
31: * Relations are not initialized by this method since they are lazy loaded
32: *
33: * @return void
34: * @throws PropelException
35: */
36: public function initialize()
37: {
38: // attributes
39: $this->setName('cv');
40: $this->setPhpName('Cv');
41: $this->setClassname('cli_db\\propel\\Cv');
42: $this->setPackage('cli_db');
43: $this->setUseIdGenerator(true);
44: $this->setPrimaryKeyMethodInfo('cv_cv_id_seq');
45: // columns
46: $this->addPrimaryKey('cv_id', 'CvId', 'INTEGER', true, null, null);
47: $this->addColumn('name', 'Name', 'VARCHAR', true, 255, null);
48: $this->addColumn('definition', 'Definition', 'LONGVARCHAR', false, null, null);
49: // validators
50: } // initialize()
51:
52: /**
53: * Build the RelationMap objects for this table relationships
54: */
55: public function buildRelations()
56: {
57: $this->addRelation('Cvterm', 'cli_db\\propel\\Cvterm', RelationMap::ONE_TO_MANY, array('cv_id' => 'cv_id', ), 'CASCADE', null, 'Cvterms');
58: } // buildRelations()
59:
60: } // CvTableMap
61: