Code Duplication    Length = 23-23 lines in 6 locations

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

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

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

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

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

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

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

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