Code Duplication    Length = 13-13 lines in 5 locations

src/cli/Database/Base/ChannelQuery.php 1 location

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

src/cli/Database/Base/ConnectionQuery.php 1 location

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

src/cli/Database/Base/InstanceQuery.php 1 location

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

src/cli/Database/Base/SubscriptionQuery.php 1 location

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

src/cli/Database/Base/UserQuery.php 1 location

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