Code Duplication    Length = 18-18 lines in 6 locations

src/cli/Database/Map/ChannelTableMap.php 1 location

@@ 238-255 (lines=18) @@
235
     *                         rethrown wrapped into a PropelException.
236
     * @return array           (Channel object, last column rank)
237
     */
238
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
239
    {
240
        $key = ChannelTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
241
        if (null !== ($obj = ChannelTableMap::getInstanceFromPool($key))) {
242
            // We no longer rehydrate the object, since this can cause data loss.
243
            // See http://www.propelorm.org/ticket/509
244
            // $obj->hydrate($row, $offset, true); // rehydrate
245
            $col = $offset + ChannelTableMap::NUM_HYDRATE_COLUMNS;
246
        } else {
247
            $cls = ChannelTableMap::OM_CLASS;
248
            /** @var Channel $obj */
249
            $obj = new $cls();
250
            $col = $obj->hydrate($row, $offset, false, $indexType);
251
            ChannelTableMap::addInstanceToPool($obj, $key);
252
        }
253
254
        return array($obj, $col);
255
    }
256
257
    /**
258
     * The returned array will contain objects of the default type or

src/cli/Database/Map/ConnectionTableMap.php 1 location

@@ 256-273 (lines=18) @@
253
     *                         rethrown wrapped into a PropelException.
254
     * @return array           (Connection object, last column rank)
255
     */
256
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
257
    {
258
        $key = ConnectionTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
259
        if (null !== ($obj = ConnectionTableMap::getInstanceFromPool($key))) {
260
            // We no longer rehydrate the object, since this can cause data loss.
261
            // See http://www.propelorm.org/ticket/509
262
            // $obj->hydrate($row, $offset, true); // rehydrate
263
            $col = $offset + ConnectionTableMap::NUM_HYDRATE_COLUMNS;
264
        } else {
265
            $cls = ConnectionTableMap::OM_CLASS;
266
            /** @var Connection $obj */
267
            $obj = new $cls();
268
            $col = $obj->hydrate($row, $offset, false, $indexType);
269
            ConnectionTableMap::addInstanceToPool($obj, $key);
270
        }
271
272
        return array($obj, $col);
273
    }
274
275
    /**
276
     * The returned array will contain objects of the default type or

src/cli/Database/Map/UserTableMap.php 1 location

@@ 245-262 (lines=18) @@
242
     *                         rethrown wrapped into a PropelException.
243
     * @return array           (User object, last column rank)
244
     */
245
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
246
    {
247
        $key = UserTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
248
        if (null !== ($obj = UserTableMap::getInstanceFromPool($key))) {
249
            // We no longer rehydrate the object, since this can cause data loss.
250
            // See http://www.propelorm.org/ticket/509
251
            // $obj->hydrate($row, $offset, true); // rehydrate
252
            $col = $offset + UserTableMap::NUM_HYDRATE_COLUMNS;
253
        } else {
254
            $cls = UserTableMap::OM_CLASS;
255
            /** @var User $obj */
256
            $obj = new $cls();
257
            $col = $obj->hydrate($row, $offset, false, $indexType);
258
            UserTableMap::addInstanceToPool($obj, $key);
259
        }
260
261
        return array($obj, $col);
262
    }
263
264
    /**
265
     * The returned array will contain objects of the default type or

src/cli/Database/Map/InputTableMap.php 1 location

@@ 262-279 (lines=18) @@
259
     *                         rethrown wrapped into a PropelException.
260
     * @return array           (Input object, last column rank)
261
     */
262
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
263
    {
264
        $key = InputTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
265
        if (null !== ($obj = InputTableMap::getInstanceFromPool($key))) {
266
            // We no longer rehydrate the object, since this can cause data loss.
267
            // See http://www.propelorm.org/ticket/509
268
            // $obj->hydrate($row, $offset, true); // rehydrate
269
            $col = $offset + InputTableMap::NUM_HYDRATE_COLUMNS;
270
        } else {
271
            $cls = InputTableMap::OM_CLASS;
272
            /** @var Input $obj */
273
            $obj = new $cls();
274
            $col = $obj->hydrate($row, $offset, false, $indexType);
275
            InputTableMap::addInstanceToPool($obj, $key);
276
        }
277
278
        return array($obj, $col);
279
    }
280
281
    /**
282
     * The returned array will contain objects of the default type or

src/cli/Database/Map/InstanceTableMap.php 1 location

@@ 247-264 (lines=18) @@
244
     *                         rethrown wrapped into a PropelException.
245
     * @return array           (Instance object, last column rank)
246
     */
247
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
248
    {
249
        $key = InstanceTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
250
        if (null !== ($obj = InstanceTableMap::getInstanceFromPool($key))) {
251
            // We no longer rehydrate the object, since this can cause data loss.
252
            // See http://www.propelorm.org/ticket/509
253
            // $obj->hydrate($row, $offset, true); // rehydrate
254
            $col = $offset + InstanceTableMap::NUM_HYDRATE_COLUMNS;
255
        } else {
256
            $cls = InstanceTableMap::OM_CLASS;
257
            /** @var Instance $obj */
258
            $obj = new $cls();
259
            $col = $obj->hydrate($row, $offset, false, $indexType);
260
            InstanceTableMap::addInstanceToPool($obj, $key);
261
        }
262
263
        return array($obj, $col);
264
    }
265
266
    /**
267
     * The returned array will contain objects of the default type or

src/cli/Database/Map/SubscriptionTableMap.php 1 location

@@ 294-311 (lines=18) @@
291
     *                         rethrown wrapped into a PropelException.
292
     * @return array           (Subscription object, last column rank)
293
     */
294
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
295
    {
296
        $key = SubscriptionTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
297
        if (null !== ($obj = SubscriptionTableMap::getInstanceFromPool($key))) {
298
            // We no longer rehydrate the object, since this can cause data loss.
299
            // See http://www.propelorm.org/ticket/509
300
            // $obj->hydrate($row, $offset, true); // rehydrate
301
            $col = $offset + SubscriptionTableMap::NUM_HYDRATE_COLUMNS;
302
        } else {
303
            $cls = SubscriptionTableMap::OM_CLASS;
304
            /** @var Subscription $obj */
305
            $obj = new $cls();
306
            $col = $obj->hydrate($row, $offset, false, $indexType);
307
            SubscriptionTableMap::addInstanceToPool($obj, $key);
308
        }
309
310
        return array($obj, $col);
311
    }
312
313
    /**
314
     * The returned array will contain objects of the default type or