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 TaxI18nTableMap extends TableMap
22: {
23:
24: 25: 26:
27: const CLASS_NAME = 'Thelia.Model.map.TaxI18nTableMap';
28:
29: 30: 31: 32: 33: 34: 35:
36: public function initialize()
37: {
38:
39: $this->setName('tax_i18n');
40: $this->setPhpName('TaxI18n');
41: $this->setClassname('Thelia\\Model\\TaxI18n');
42: $this->setPackage('Thelia.Model');
43: $this->setUseIdGenerator(false);
44:
45: $this->addForeignPrimaryKey('id', 'Id', 'INTEGER' , 'tax', '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', 'LONGVARCHAR', false, null, null);
49:
50: }
51:
52: 53: 54:
55: public function buildRelations()
56: {
57: $this->addRelation('Tax', 'Thelia\\Model\\Tax', RelationMap::MANY_TO_ONE, array('id' => 'id', ), 'CASCADE', null);
58: }
59:
60: }
61: