44 lines
837 B
PHP
44 lines
837 B
PHP
<?php
|
|
|
|
|
|
|
|
class EventI18nMapBuilder {
|
|
|
|
|
|
const CLASS_NAME = 'lib.model.map.EventI18nMapBuilder';
|
|
|
|
|
|
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('Event_i18n');
|
|
$tMap->setPhpName('EventI18n');
|
|
|
|
$tMap->setUseIdGenerator(false);
|
|
|
|
$tMap->addColumn('TITLE', 'Title', 'string', CreoleTypes::VARCHAR, false, 255);
|
|
|
|
$tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
|
|
|
$tMap->addForeignPrimaryKey('ID', 'Id', 'int' , CreoleTypes::INTEGER, 'Event', 'ID', true, null);
|
|
|
|
$tMap->addPrimaryKey('CULTURE', 'Culture', 'string', CreoleTypes::VARCHAR, true, 7);
|
|
|
|
}
|
|
}
|