CcCountryTableMap.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * This class defines the structure of the 'cc_country' 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 CcCountryTableMap extends TableMap {
  15. /**
  16. * The (dot-path) name of this class
  17. */
  18. const CLASS_NAME = 'airtime.map.CcCountryTableMap';
  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_country');
  30. $this->setPhpName('CcCountry');
  31. $this->setClassname('CcCountry');
  32. $this->setPackage('airtime');
  33. $this->setUseIdGenerator(false);
  34. // columns
  35. $this->addPrimaryKey('ISOCODE', 'DbIsoCode', 'CHAR', true, 3, null);
  36. $this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, null);
  37. // validators
  38. } // initialize()
  39. /**
  40. * Build the RelationMap objects for this table relationships
  41. */
  42. public function buildRelations()
  43. {
  44. } // buildRelations()
  45. } // CcCountryTableMap