44 lines
848 B
PHP
44 lines
848 B
PHP
<?php
|
|
|
|
|
|
|
|
class EmployeeI18nMapBuilder {
|
|
|
|
|
|
const CLASS_NAME = 'lib.model.map.EmployeeI18nMapBuilder';
|
|
|
|
|
|
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('Employee_i18n');
|
|
$tMap->setPhpName('EmployeeI18n');
|
|
|
|
$tMap->setUseIdGenerator(false);
|
|
|
|
$tMap->addColumn('BIOGRAPHY', 'Biography', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
|
|
|
$tMap->addColumn('TITLE', 'Title', 'string', CreoleTypes::VARCHAR, false, 100);
|
|
|
|
$tMap->addForeignPrimaryKey('ID', 'Id', 'int' , CreoleTypes::INTEGER, 'Employee', 'ID', true, null);
|
|
|
|
$tMap->addPrimaryKey('CULTURE', 'Culture', 'string', CreoleTypes::VARCHAR, true, 7);
|
|
|
|
}
|
|
}
|