Code Duplication    Length = 14-14 lines in 2 locations

application/modules/xbanners/models/Base/BannerImageI18nQuery.php 1 location

@@ 269-282 (lines=14) @@
266
     *
267
     * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface
268
     */
269
    public function filterByPrimaryKeys($keys)
270
    {
271
        if (empty($keys)) {
272
            return $this->add(null, '1<>1', Criteria::CUSTOM);
273
        }
274
        foreach ($keys as $key) {
275
            $cton0 = $this->getNewCriterion(BannerImageI18nTableMap::COL_ID, $key[0], Criteria::EQUAL);
276
            $cton1 = $this->getNewCriterion(BannerImageI18nTableMap::COL_LOCALE, $key[1], Criteria::EQUAL);
277
            $cton0->addAnd($cton1);
278
            $this->addOr($cton0);
279
        }
280
281
        return $this;
282
    }
283
284
    /**
285
     * Filter the query on the id column

application/modules/xbanners/models/Base/BannersI18nQuery.php 1 location

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