Files
pae.co.at/trunk/proactiveenglish/lib/model/map/ReferenceMapBuilder.php
2017-03-02 21:57:21 -06:00

40 lines
636 B
PHP

<?php
class ReferenceMapBuilder {
const CLASS_NAME = 'lib.model.map.ReferenceMapBuilder';
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('Reference');
$tMap->setPhpName('Reference');
$tMap->setUseIdGenerator(true);
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
$tMap->addColumn('COMPANY_NAME', 'CompanyName', 'string', CreoleTypes::VARCHAR, false, 255);
}
}