CcBlockcriteriaTableMap.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * This class defines the structure of the 'cc_blockcriteria' table.
  4. *
  5. *
  6. *
  7. * This map class is used by Propel to do runtime db structure discovery.
  8. * For example, the createSelectSql() method checks the type of a given column used in an
  9. * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
  10. * (i.e. if it's a text column type).
  11. *
  12. * @package propel.generator.airtime.map
  13. */
  14. class CcBlockcriteriaTableMap extends TableMap {
  15. /**
  16. * The (dot-path) name of this class
  17. */
  18. const CLASS_NAME = 'airtime.map.CcBlockcriteriaTableMap';
  19. /**
  20. * Initialize the table attributes, columns and validators
  21. * Relations are not initialized by this method since they are lazy loaded
  22. *
  23. * @return void
  24. * @throws PropelException
  25. */
  26. public function initialize()
  27. {
  28. // attributes
  29. $this->setName('cc_blockcriteria');
  30. $this->setPhpName('CcBlockcriteria');
  31. $this->setClassname('CcBlockcriteria');
  32. $this->setPackage('airtime');
  33. $this->setUseIdGenerator(true);
  34. $this->setPrimaryKeyMethodInfo('cc_blockcriteria_id_seq');
  35. // columns
  36. $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
  37. $this->addColumn('CRITERIA', 'DbCriteria', 'VARCHAR', true, 32, null);
  38. $this->addColumn('MODIFIER', 'DbModifier', 'VARCHAR', true, 16, null);
  39. $this->addColumn('VALUE', 'DbValue', 'VARCHAR', true, 512, null);
  40. $this->addColumn('EXTRA', 'DbExtra', 'VARCHAR', false, 512, null);
  41. $this->addForeignKey('BLOCK_ID', 'DbBlockId', 'INTEGER', 'cc_block', 'ID', true, null, null);
  42. // validators
  43. } // initialize()
  44. /**
  45. * Build the RelationMap objects for this table relationships
  46. */
  47. public function buildRelations()
  48. {
  49. $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null);
  50. } // buildRelations()
  51. } // CcBlockcriteriaTableMap