@@ 198-214 (lines=17) @@ | ||
195 | /** |
|
196 | * Build the RelationMap objects for this table relationships |
|
197 | */ |
|
198 | public function buildRelations() |
|
199 | { |
|
200 | $this->addRelation('Banners', '\\xbanners\\models\\Banners', RelationMap::MANY_TO_ONE, array ( |
|
201 | 0 => |
|
202 | array ( |
|
203 | 0 => ':banner_id', |
|
204 | 1 => ':id', |
|
205 | ), |
|
206 | ), 'CASCADE', 'CASCADE', null, false); |
|
207 | $this->addRelation('BannerImageI18n', '\\xbanners\\models\\BannerImageI18n', RelationMap::ONE_TO_MANY, array ( |
|
208 | 0 => |
|
209 | array ( |
|
210 | 0 => ':id', |
|
211 | 1 => ':id', |
|
212 | ), |
|
213 | ), 'CASCADE', null, 'BannerImageI18ns', false); |
|
214 | } // buildRelations() |
|
215 | ||
216 | /** |
|
217 | * |
@@ 174-190 (lines=17) @@ | ||
171 | /** |
|
172 | * Build the RelationMap objects for this table relationships |
|
173 | */ |
|
174 | public function buildRelations() |
|
175 | { |
|
176 | $this->addRelation('BannerImage', '\\xbanners\\models\\BannerImage', RelationMap::ONE_TO_MANY, array ( |
|
177 | 0 => |
|
178 | array ( |
|
179 | 0 => ':banner_id', |
|
180 | 1 => ':id', |
|
181 | ), |
|
182 | ), 'CASCADE', 'CASCADE', 'BannerImages', false); |
|
183 | $this->addRelation('BannersI18n', '\\xbanners\\models\\BannersI18n', RelationMap::ONE_TO_MANY, array ( |
|
184 | 0 => |
|
185 | array ( |
|
186 | 0 => ':id', |
|
187 | 1 => ':id', |
|
188 | ), |
|
189 | ), 'CASCADE', null, 'BannersI18ns', false); |
|
190 | } // buildRelations() |
|
191 | ||
192 | /** |
|
193 | * |
@@ 161-177 (lines=17) @@ | ||
158 | /** |
|
159 | * Build the RelationMap objects for this table relationships |
|
160 | */ |
|
161 | public function buildRelations() |
|
162 | { |
|
163 | $this->addRelation('SCategory', '\\SCategory', RelationMap::ONE_TO_MANY, array ( |
|
164 | 0 => |
|
165 | array ( |
|
166 | 0 => ':route_id', |
|
167 | 1 => ':id', |
|
168 | ), |
|
169 | ), 'CASCADE', null, 'SCategories', false); |
|
170 | $this->addRelation('SProducts', '\\SProducts', RelationMap::ONE_TO_MANY, array ( |
|
171 | 0 => |
|
172 | array ( |
|
173 | 0 => ':route_id', |
|
174 | 1 => ':id', |
|
175 | ), |
|
176 | ), 'CASCADE', null, 'SProductss', false); |
|
177 | } // buildRelations() |
|
178 | /** |
|
179 | * Method to invalidate the instance pool of all tables related to route * by a foreign key with ON DELETE CASCADE |
|
180 | */ |