Code Duplication    Length = 13-13 lines in 4 locations

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

@@ 227-239 (lines=13) @@
224
     *
225
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
226
     */
227
    public function findPks($keys, ConnectionInterface $con = null)
228
    {
229
        if (null === $con) {
230
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
231
        }
232
        $this->basePreSelect($con);
233
        $criteria = $this->isKeepQuery() ? clone $this : $this;
234
        $dataFetcher = $criteria
235
            ->filterByPrimaryKeys($keys)
236
            ->doSelect($con);
237
238
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
239
    }
240
241
    /**
242
     * Filter the query by primary key

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

@@ 258-270 (lines=13) @@
255
     *
256
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
257
     */
258
    public function findPks($keys, ConnectionInterface $con = null)
259
    {
260
        if (null === $con) {
261
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
262
        }
263
        $this->basePreSelect($con);
264
        $criteria = $this->isKeepQuery() ? clone $this : $this;
265
        $dataFetcher = $criteria
266
            ->filterByPrimaryKeys($keys)
267
            ->doSelect($con);
268
269
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
270
    }
271
272
    /**
273
     * Filter the query by primary key

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

@@ 212-224 (lines=13) @@
209
     *
210
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
211
     */
212
    public function findPks($keys, ConnectionInterface $con = null)
213
    {
214
        if (null === $con) {
215
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
216
        }
217
        $this->basePreSelect($con);
218
        $criteria = $this->isKeepQuery() ? clone $this : $this;
219
        $dataFetcher = $criteria
220
            ->filterByPrimaryKeys($keys)
221
            ->doSelect($con);
222
223
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
224
    }
225
226
    /**
227
     * Filter the query by primary key

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

@@ 239-251 (lines=13) @@
236
     *
237
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
238
     */
239
    public function findPks($keys, ConnectionInterface $con = null)
240
    {
241
        if (null === $con) {
242
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
243
        }
244
        $this->basePreSelect($con);
245
        $criteria = $this->isKeepQuery() ? clone $this : $this;
246
        $dataFetcher = $criteria
247
            ->filterByPrimaryKeys($keys)
248
            ->doSelect($con);
249
250
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
251
    }
252
253
    /**
254
     * Filter the query by primary key