Code Duplication    Length = 11-11 lines in 5 locations

application/modules/xbanners/models/Base/BannerImage.php 1 location

@@ 1682-1692 (lines=11) @@
1679
     *
1680
     * @return void
1681
     */
1682
    public function initBannerImageI18ns($overrideExisting = true)
1683
    {
1684
        if (null !== $this->collBannerImageI18ns && !$overrideExisting) {
1685
            return;
1686
        }
1687
1688
        $collectionClassName = BannerImageI18nTableMap::getTableMap()->getCollectionClassName();
1689
1690
        $this->collBannerImageI18ns = new $collectionClassName;
1691
        $this->collBannerImageI18ns->setModel('\xbanners\models\BannerImageI18n');
1692
    }
1693
1694
    /**
1695
     * Gets an array of ChildBannerImageI18n objects which contain a foreign key that references this object.

application/modules/xbanners/models/Base/Banners.php 2 locations

@@ 1407-1417 (lines=11) @@
1404
     *
1405
     * @return void
1406
     */
1407
    public function initBannerImages($overrideExisting = true)
1408
    {
1409
        if (null !== $this->collBannerImages && !$overrideExisting) {
1410
            return;
1411
        }
1412
1413
        $collectionClassName = BannerImageTableMap::getTableMap()->getCollectionClassName();
1414
1415
        $this->collBannerImages = new $collectionClassName;
1416
        $this->collBannerImages->setModel('\xbanners\models\BannerImage');
1417
    }
1418
1419
    /**
1420
     * Gets an array of ChildBannerImage objects which contain a foreign key that references this object.
@@ 1632-1642 (lines=11) @@
1629
     *
1630
     * @return void
1631
     */
1632
    public function initBannersI18ns($overrideExisting = true)
1633
    {
1634
        if (null !== $this->collBannersI18ns && !$overrideExisting) {
1635
            return;
1636
        }
1637
1638
        $collectionClassName = BannersI18nTableMap::getTableMap()->getCollectionClassName();
1639
1640
        $this->collBannersI18ns = new $collectionClassName;
1641
        $this->collBannersI18ns->setModel('\xbanners\models\BannersI18n');
1642
    }
1643
1644
    /**
1645
     * Gets an array of ChildBannersI18n objects which contain a foreign key that references this object.

application/modules/core/models/Base/Route.php 2 locations

@@ 1353-1363 (lines=11) @@
1350
     *
1351
     * @return void
1352
     */
1353
    public function initSCategories($overrideExisting = true)
1354
    {
1355
        if (null !== $this->collSCategories && !$overrideExisting) {
1356
            return;
1357
        }
1358
1359
        $collectionClassName = SCategoryTableMap::getTableMap()->getCollectionClassName();
1360
1361
        $this->collSCategories = new $collectionClassName;
1362
        $this->collSCategories->setModel('\SCategory');
1363
    }
1364
1365
    /**
1366
     * Gets an array of SCategory objects which contain a foreign key that references this object.
@@ 1603-1613 (lines=11) @@
1600
     *
1601
     * @return void
1602
     */
1603
    public function initSProductss($overrideExisting = true)
1604
    {
1605
        if (null !== $this->collSProductss && !$overrideExisting) {
1606
            return;
1607
        }
1608
1609
        $collectionClassName = SProductsTableMap::getTableMap()->getCollectionClassName();
1610
1611
        $this->collSProductss = new $collectionClassName;
1612
        $this->collSProductss->setModel('\SProducts');
1613
    }
1614
1615
    /**
1616
     * Gets an array of SProducts objects which contain a foreign key that references this object.