Code Duplication    Length = 23-23 lines in 6 locations

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

@@ 519-541 (lines=23) @@
516
     *
517
     * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface
518
     */
519
    public function joinBannerImage($relationAlias = null, $joinType = 'LEFT JOIN')
520
    {
521
        $tableMap = $this->getTableMap();
522
        $relationMap = $tableMap->getRelation('BannerImage');
523
524
        // create a ModelJoin object for this join
525
        $join = new ModelJoin();
526
        $join->setJoinType($joinType);
527
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
528
        if ($previousJoin = $this->getPreviousJoin()) {
529
            $join->setPreviousJoin($previousJoin);
530
        }
531
532
        // add the ModelJoin to the current object
533
        if ($relationAlias) {
534
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
535
            $this->addJoinObject($join, $relationAlias);
536
        } else {
537
            $this->addJoinObject($join, 'BannerImage');
538
        }
539
540
        return $this;
541
    }
542
543
    /**
544
     * Use the BannerImage relation BannerImage object

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

@@ 739-761 (lines=23) @@
736
     *
737
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
738
     */
739
    public function joinBanners($relationAlias = null, $joinType = Criteria::INNER_JOIN)
740
    {
741
        $tableMap = $this->getTableMap();
742
        $relationMap = $tableMap->getRelation('Banners');
743
744
        // create a ModelJoin object for this join
745
        $join = new ModelJoin();
746
        $join->setJoinType($joinType);
747
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
748
        if ($previousJoin = $this->getPreviousJoin()) {
749
            $join->setPreviousJoin($previousJoin);
750
        }
751
752
        // add the ModelJoin to the current object
753
        if ($relationAlias) {
754
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
755
            $this->addJoinObject($join, $relationAlias);
756
        } else {
757
            $this->addJoinObject($join, 'Banners');
758
        }
759
760
        return $this;
761
    }
762
763
    /**
764
     * Use the Banners relation Banners object
@@ 812-834 (lines=23) @@
809
     *
810
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
811
     */
812
    public function joinBannerImageI18n($relationAlias = null, $joinType = 'LEFT JOIN')
813
    {
814
        $tableMap = $this->getTableMap();
815
        $relationMap = $tableMap->getRelation('BannerImageI18n');
816
817
        // create a ModelJoin object for this join
818
        $join = new ModelJoin();
819
        $join->setJoinType($joinType);
820
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
821
        if ($previousJoin = $this->getPreviousJoin()) {
822
            $join->setPreviousJoin($previousJoin);
823
        }
824
825
        // add the ModelJoin to the current object
826
        if ($relationAlias) {
827
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
828
            $this->addJoinObject($join, $relationAlias);
829
        } else {
830
            $this->addJoinObject($join, 'BannerImageI18n');
831
        }
832
833
        return $this;
834
    }
835
836
    /**
837
     * Use the BannerImageI18n relation BannerImageI18n object

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

@@ 405-427 (lines=23) @@
402
     *
403
     * @return $this|ChildBannersI18nQuery The current query, for fluid interface
404
     */
405
    public function joinBanners($relationAlias = null, $joinType = 'LEFT JOIN')
406
    {
407
        $tableMap = $this->getTableMap();
408
        $relationMap = $tableMap->getRelation('Banners');
409
410
        // create a ModelJoin object for this join
411
        $join = new ModelJoin();
412
        $join->setJoinType($joinType);
413
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
414
        if ($previousJoin = $this->getPreviousJoin()) {
415
            $join->setPreviousJoin($previousJoin);
416
        }
417
418
        // add the ModelJoin to the current object
419
        if ($relationAlias) {
420
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
421
            $this->addJoinObject($join, $relationAlias);
422
        } else {
423
            $this->addJoinObject($join, 'Banners');
424
        }
425
426
        return $this;
427
    }
428
429
    /**
430
     * Use the Banners relation Banners object

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

@@ 526-548 (lines=23) @@
523
     *
524
     * @return $this|ChildBannersQuery The current query, for fluid interface
525
     */
526
    public function joinBannerImage($relationAlias = null, $joinType = Criteria::INNER_JOIN)
527
    {
528
        $tableMap = $this->getTableMap();
529
        $relationMap = $tableMap->getRelation('BannerImage');
530
531
        // create a ModelJoin object for this join
532
        $join = new ModelJoin();
533
        $join->setJoinType($joinType);
534
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
535
        if ($previousJoin = $this->getPreviousJoin()) {
536
            $join->setPreviousJoin($previousJoin);
537
        }
538
539
        // add the ModelJoin to the current object
540
        if ($relationAlias) {
541
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
542
            $this->addJoinObject($join, $relationAlias);
543
        } else {
544
            $this->addJoinObject($join, 'BannerImage');
545
        }
546
547
        return $this;
548
    }
549
550
    /**
551
     * Use the BannerImage relation BannerImage object
@@ 599-621 (lines=23) @@
596
     *
597
     * @return $this|ChildBannersQuery The current query, for fluid interface
598
     */
599
    public function joinBannersI18n($relationAlias = null, $joinType = 'LEFT JOIN')
600
    {
601
        $tableMap = $this->getTableMap();
602
        $relationMap = $tableMap->getRelation('BannersI18n');
603
604
        // create a ModelJoin object for this join
605
        $join = new ModelJoin();
606
        $join->setJoinType($joinType);
607
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
608
        if ($previousJoin = $this->getPreviousJoin()) {
609
            $join->setPreviousJoin($previousJoin);
610
        }
611
612
        // add the ModelJoin to the current object
613
        if ($relationAlias) {
614
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
615
            $this->addJoinObject($join, $relationAlias);
616
        } else {
617
            $this->addJoinObject($join, 'BannersI18n');
618
        }
619
620
        return $this;
621
    }
622
623
    /**
624
     * Use the BannersI18n relation BannersI18n object