Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 317-323 (lines=7) @@
314
    /**
315
     * Add a TableMap instance to the database for this tableMap class.
316
     */
317
    public static function buildTableMap()
318
    {
319
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(TaskTableMap::DATABASE_NAME);
320
        if (!$dbMap->hasTable(TaskTableMap::TABLE_NAME)) {
321
            $dbMap->addTableObject(new TaskTableMap());
322
        }
323
    }
324
325
    /**
326
     * Performs a DELETE on the database, given a Task or Criteria object OR a primary key value.

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

@@ 362-368 (lines=7) @@
359
    /**
360
     * Add a TableMap instance to the database for this tableMap class.
361
     */
362
    public static function buildTableMap()
363
    {
364
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(UserTableMap::DATABASE_NAME);
365
        if (!$dbMap->hasTable(UserTableMap::TABLE_NAME)) {
366
            $dbMap->addTableObject(new UserTableMap());
367
        }
368
    }
369
370
    /**
371
     * Performs a DELETE on the database, given a User or Criteria object OR a primary key value.

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

@@ 325-331 (lines=7) @@
322
    /**
323
     * Add a TableMap instance to the database for this tableMap class.
324
     */
325
    public static function buildTableMap()
326
    {
327
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(SelfpriceTableMap::DATABASE_NAME);
328
        if (!$dbMap->hasTable(SelfpriceTableMap::TABLE_NAME)) {
329
            $dbMap->addTableObject(new SelfpriceTableMap());
330
        }
331
    }
332
333
    /**
334
     * Performs a DELETE on the database, given a Selfprice or Criteria object OR a primary key value.