1: <?php
2:
3: namespace Thelia\Model\map;
4:
5: use \RelationMap;
6: use \TableMap;
7:
8:
9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
21: class FeatureI18nTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'Thelia.Model.map.FeatureI18nTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('feature_i18n');
40: $this->setPhpName('FeatureI18n');
41: $this->setClassname('Thelia\\Model\\FeatureI18n');
42: $this->setPackage('Thelia.Model');
43: $this->setUseIdGenerator(false);
44:
45: $this->addForeignPrimaryKey('id', 'Id', 'INTEGER' , 'feature', 'id', true, null, null);
46: $this->addPrimaryKey('locale', 'Locale', 'VARCHAR', true, 5, 'en_US');
47: $this->addColumn('title', 'Title', 'VARCHAR', false, 255, null);
48: $this->addColumn('description', 'Description', 'CLOB', false, null, null);
49: $this->addColumn('chapo', 'Chapo', 'LONGVARCHAR', false, null, null);
50: $this->addColumn('postscriptum', 'Postscriptum', 'LONGVARCHAR', false, null, null);
51:
52: }
53:
54: 55: 56:
57: public function buildRelations()
58: {
59: $this->addRelation('Feature', 'Thelia\\Model\\Feature', RelationMap::MANY_TO_ONE, array('id' => 'id', ), 'CASCADE', null);
60: }
61:
62: }
63: