Code Duplication    Length = 18-18 lines in 2 locations

app/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

app/Models/User/Map/UserTableMap.php 1 location

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