40 lines
666 B
PHP
40 lines
666 B
PHP
<?php
|
|
|
|
|
|
|
|
class LuEmployeePositionMapBuilder {
|
|
|
|
|
|
const CLASS_NAME = 'lib.model.map.LuEmployeePositionMapBuilder';
|
|
|
|
|
|
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('LU_Employee_Position');
|
|
$tMap->setPhpName('LuEmployeePosition');
|
|
|
|
$tMap->setUseIdGenerator(true);
|
|
|
|
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
|
|
|
$tMap->addColumn('POSITION', 'Position', 'string', CreoleTypes::VARCHAR, false, 25);
|
|
|
|
}
|
|
}
|