| @@ 263-276 (lines=14) @@ | ||
| 260 | * |
|
| 261 | * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface |
|
| 262 | */ |
|
| 263 | public function filterByPrimaryKeys($keys) |
|
| 264 | { |
|
| 265 | if (empty($keys)) { |
|
| 266 | return $this->add(null, '1<>1', Criteria::CUSTOM); |
|
| 267 | } |
|
| 268 | foreach ($keys as $key) { |
|
| 269 | $cton0 = $this->getNewCriterion(BannerImageI18nTableMap::COL_ID, $key[0], Criteria::EQUAL); |
|
| 270 | $cton1 = $this->getNewCriterion(BannerImageI18nTableMap::COL_LOCALE, $key[1], Criteria::EQUAL); |
|
| 271 | $cton0->addAnd($cton1); |
|
| 272 | $this->addOr($cton0); |
|
| 273 | } |
|
| 274 | ||
| 275 | return $this; |
|
| 276 | } |
|
| 277 | ||
| 278 | /** |
|
| 279 | * Filter the query on the id column |
|
| @@ 248-261 (lines=14) @@ | ||
| 245 | * |
|
| 246 | * @return $this|ChildBannersI18nQuery The current query, for fluid interface |
|
| 247 | */ |
|
| 248 | public function filterByPrimaryKeys($keys) |
|
| 249 | { |
|
| 250 | if (empty($keys)) { |
|
| 251 | return $this->add(null, '1<>1', Criteria::CUSTOM); |
|
| 252 | } |
|
| 253 | foreach ($keys as $key) { |
|
| 254 | $cton0 = $this->getNewCriterion(BannersI18nTableMap::COL_ID, $key[0], Criteria::EQUAL); |
|
| 255 | $cton1 = $this->getNewCriterion(BannersI18nTableMap::COL_LOCALE, $key[1], Criteria::EQUAL); |
|
| 256 | $cton0->addAnd($cton1); |
|
| 257 | $this->addOr($cton0); |
|
| 258 | } |
|
| 259 | ||
| 260 | return $this; |
|
| 261 | } |
|
| 262 | ||
| 263 | /** |
|
| 264 | * Filter the query on the id column |
|