CcMusicDirsTableMap.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * This class defines the structure of the 'cc_music_dirs' 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 CcMusicDirsTableMap extends TableMap {
  15. /**
  16. * The (dot-path) name of this class
  17. */
  18. const CLASS_NAME = 'airtime.map.CcMusicDirsTableMap';
  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_music_dirs');
  30. $this->setPhpName('CcMusicDirs');
  31. $this->setClassname('CcMusicDirs');
  32. $this->setPackage('airtime');
  33. $this->setUseIdGenerator(true);
  34. $this->setPrimaryKeyMethodInfo('cc_music_dirs_id_seq');
  35. // columns
  36. $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
  37. $this->addColumn('DIRECTORY', 'Directory', 'LONGVARCHAR', false, null, null);
  38. $this->addColumn('TYPE', 'Type', 'VARCHAR', false, 255, null);
  39. $this->addColumn('EXISTS', 'Exists', 'BOOLEAN', false, null, true);
  40. $this->addColumn('WATCHED', 'Watched', 'BOOLEAN', false, null, true);
  41. // validators
  42. } // initialize()
  43. /**
  44. * Build the RelationMap objects for this table relationships
  45. */
  46. public function buildRelations()
  47. {
  48. $this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'directory', ), null, null);
  49. } // buildRelations()
  50. } // CcMusicDirsTableMap