Code Duplication    Length = 14-14 lines in 4 locations

application/modules/mod_link/models/Base/PageLinkQuery.php 1 location

@@ 498-511 (lines=14) @@
495
     *
496
     * @return ChildPageLinkQuery The current query, for fluid interface
497
     */
498
    public function filterByPageLinkProduct($pageLinkProduct, $comparison = null)
499
    {
500
        if ($pageLinkProduct instanceof \mod_link\models\PageLinkProduct) {
501
            return $this
502
                ->addUsingAlias(PageLinkTableMap::COL_ID, $pageLinkProduct->getLinkId(), $comparison);
503
        } elseif ($pageLinkProduct instanceof ObjectCollection) {
504
            return $this
505
                ->usePageLinkProductQuery()
506
                ->filterByPrimaryKeys($pageLinkProduct->getPrimaryKeys())
507
                ->endUse();
508
        } else {
509
            throw new PropelException('filterByPageLinkProduct() only accepts arguments of type \mod_link\models\PageLinkProduct or Collection');
510
        }
511
    }
512
513
    /**
514
     * Adds a JOIN clause to the query using the PageLinkProduct relation

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

@@ 786-799 (lines=14) @@
783
     *
784
     * @return ChildBannerImageQuery The current query, for fluid interface
785
     */
786
    public function filterByBannerImageI18n($bannerImageI18n, $comparison = null)
787
    {
788
        if ($bannerImageI18n instanceof \xbanners\models\BannerImageI18n) {
789
            return $this
790
                ->addUsingAlias(BannerImageTableMap::COL_ID, $bannerImageI18n->getId(), $comparison);
791
        } elseif ($bannerImageI18n instanceof ObjectCollection) {
792
            return $this
793
                ->useBannerImageI18nQuery()
794
                ->filterByPrimaryKeys($bannerImageI18n->getPrimaryKeys())
795
                ->endUse();
796
        } else {
797
            throw new PropelException('filterByBannerImageI18n() only accepts arguments of type \xbanners\models\BannerImageI18n or Collection');
798
        }
799
    }
800
801
    /**
802
     * Adds a JOIN clause to the query using the BannerImageI18n relation

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

@@ 494-507 (lines=14) @@
491
     *
492
     * @return ChildBannersQuery The current query, for fluid interface
493
     */
494
    public function filterByBannerImage($bannerImage, $comparison = null)
495
    {
496
        if ($bannerImage instanceof \xbanners\models\BannerImage) {
497
            return $this
498
                ->addUsingAlias(BannersTableMap::COL_ID, $bannerImage->getBannerId(), $comparison);
499
        } elseif ($bannerImage instanceof ObjectCollection) {
500
            return $this
501
                ->useBannerImageQuery()
502
                ->filterByPrimaryKeys($bannerImage->getPrimaryKeys())
503
                ->endUse();
504
        } else {
505
            throw new PropelException('filterByBannerImage() only accepts arguments of type \xbanners\models\BannerImage or Collection');
506
        }
507
    }
508
509
    /**
510
     * Adds a JOIN clause to the query using the BannerImage relation
@@ 567-580 (lines=14) @@
564
     *
565
     * @return ChildBannersQuery The current query, for fluid interface
566
     */
567
    public function filterByBannersI18n($bannersI18n, $comparison = null)
568
    {
569
        if ($bannersI18n instanceof \xbanners\models\BannersI18n) {
570
            return $this
571
                ->addUsingAlias(BannersTableMap::COL_ID, $bannersI18n->getId(), $comparison);
572
        } elseif ($bannersI18n instanceof ObjectCollection) {
573
            return $this
574
                ->useBannersI18nQuery()
575
                ->filterByPrimaryKeys($bannersI18n->getPrimaryKeys())
576
                ->endUse();
577
        } else {
578
            throw new PropelException('filterByBannersI18n() only accepts arguments of type \xbanners\models\BannersI18n or Collection');
579
        }
580
    }
581
582
    /**
583
     * Adds a JOIN clause to the query using the BannersI18n relation