protected function initialize()
 {
     $this->schemaDomainMap = array();
     foreach (PropelTypes::getPropelTypes() as $type) {
         $this->schemaDomainMap[$type] = new Domain($type);
     }
     $this->schemaDomainMap[PropelTypes::BU_DATE] = new Domain("DATE");
     $this->schemaDomainMap[PropelTypes::BU_TIMESTAMP] = new Domain("TIMESTAMP");
     $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain("INTEGER");
 }
Exemple #2
0
 /**
  * Initialize the type -> Domain mapping.
  */
 protected function initialize()
 {
     $this->schemaDomainMap = array();
     foreach (PropelTypes::getPropelTypes() as $type) {
         $this->schemaDomainMap[$type] = new Domain($type);
     }
     // BU_* no longer needed, so map these to the DATE/TIMESTAMP domains
     $this->schemaDomainMap[PropelTypes::BU_DATE] = new Domain(PropelTypes::DATE);
     $this->schemaDomainMap[PropelTypes::BU_TIMESTAMP] = new Domain(PropelTypes::TIMESTAMP);
     // Boolean is a bit special, since typically it must be mapped to INT type.
     $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN, "INTEGER");
 }