@@ 144-160 (lines=17) @@ | ||
141 | * @return void |
|
142 | * @throws PropelException |
|
143 | */ |
|
144 | public function initialize() |
|
145 | { |
|
146 | // attributes |
|
147 | $this->setName('banner_image_i18n'); |
|
148 | $this->setPhpName('BannerImageI18n'); |
|
149 | $this->setIdentifierQuoting(false); |
|
150 | $this->setClassName('\\xbanners\\models\\BannerImageI18n'); |
|
151 | $this->setPackage('xbanners.models'); |
|
152 | $this->setUseIdGenerator(false); |
|
153 | // columns |
|
154 | $this->addForeignPrimaryKey('id', 'Id', 'INTEGER' , 'banner_image', 'id', true, 11, null); |
|
155 | $this->addPrimaryKey('locale', 'Locale', 'VARCHAR', true, 5, 'ru'); |
|
156 | $this->addColumn('src', 'Src', 'VARCHAR', false, 255, null); |
|
157 | $this->addColumn('name', 'Name', 'VARCHAR', false, 255, null); |
|
158 | $this->addColumn('clicks', 'Clicks', 'INTEGER', false, 20, null); |
|
159 | $this->addColumn('description', 'Description', 'LONGVARCHAR', false, null, null); |
|
160 | } // initialize() |
|
161 | ||
162 | /** |
|
163 | * Build the RelationMap objects for this table relationships |
@@ 153-169 (lines=17) @@ | ||
150 | * @return void |
|
151 | * @throws PropelException |
|
152 | */ |
|
153 | public function initialize() |
|
154 | { |
|
155 | // attributes |
|
156 | $this->setName('banners'); |
|
157 | $this->setPhpName('Banners'); |
|
158 | $this->setIdentifierQuoting(false); |
|
159 | $this->setClassName('\\xbanners\\models\\Banners'); |
|
160 | $this->setPackage('xbanners.models'); |
|
161 | $this->setUseIdGenerator(true); |
|
162 | // columns |
|
163 | $this->addPrimaryKey('id', 'Id', 'INTEGER', true, 11, null); |
|
164 | $this->addColumn('place', 'Place', 'VARCHAR', true, 255, null); |
|
165 | $this->addColumn('width', 'Width', 'INTEGER', true, 5, null); |
|
166 | $this->addColumn('height', 'Height', 'INTEGER', true, 5, null); |
|
167 | $this->addColumn('effects', 'Effects', 'LONGVARCHAR', false, null, null); |
|
168 | $this->addColumn('page_type', 'PageType', 'VARCHAR', true, 255, null); |
|
169 | } // initialize() |
|
170 | ||
171 | /** |
|
172 | * Build the RelationMap objects for this table relationships |