initial commit

This commit is contained in:
Chris Sewell
2012-11-28 03:55:08 -05:00
parent 7adb399b2e
commit cf140a2e97
3247 changed files with 492437 additions and 0 deletions

View File

@ -0,0 +1,46 @@
<?php
class CordinatesMapBuilder {
const CLASS_NAME = 'lib.model.map.CordinatesMapBuilder';
private $dbMap;
public function isBuilt()
{
return ($this->dbMap !== null);
}
public function getDatabaseMap()
{
return $this->dbMap;
}
public function doBuild()
{
$this->dbMap = Propel::getDatabaseMap('propel');
$tMap = $this->dbMap->addTable('cordinates');
$tMap->setPhpName('Cordinates');
$tMap->setUseIdGenerator(true);
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
$tMap->addColumn('CLIENT_ID', 'ClientId', 'int', CreoleTypes::INTEGER, false, null);
$tMap->addColumn('LAT', 'Lat', 'double', CreoleTypes::DOUBLE, false, null);
$tMap->addColumn('LON', 'Lon', 'double', CreoleTypes::DOUBLE, false, null);
$tMap->addColumn('FOUND', 'Found', 'int', CreoleTypes::INTEGER, false, null);
}
}