Code Duplication    Length = 18-18 lines in 3 locations

packages/core/src/Models/Task/Map/TaskTableMap.php 1 location

@@ 224-241 (lines=18) @@
221
     *                         rethrown wrapped into a PropelException.
222
     * @return array           (Task object, last column rank)
223
     */
224
    public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
225
    {
226
        $key = TaskTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
227
        if (null !== ($obj = TaskTableMap::getInstanceFromPool($key))) {
228
            // We no longer rehydrate the object, since this can cause data loss.
229
            // See http://www.propelorm.org/ticket/509
230
            // $obj->hydrate($row, $offset, true); // rehydrate
231
            $col = $offset + TaskTableMap::NUM_HYDRATE_COLUMNS;
232
        } else {
233
            $cls = TaskTableMap::OM_CLASS;
234
            /** @var Task $obj */
235
            $obj = new $cls();
236
            $col = $obj->hydrate($row, $offset, false, $indexType);
237
            TaskTableMap::addInstanceToPool($obj, $key);
238
        }
239
240
        return array($obj, $col);
241
    }
242
243
    /**
244
     * The returned array will contain objects of the default type or

packages/core/src/Models/User/Map/UserTableMap.php 1 location

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

packages/selfprice/src/Models/Selfprice/Map/SelfpriceTableMap.php 1 location

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