| @@ 712-734 (lines=23) @@ | ||
| 709 | * |
|
| 710 | * @return $this|ChildRecordQuery The current query, for fluid interface |
|
| 711 | */ |
|
| 712 | public function joinPlayer($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 713 | { |
|
| 714 | $tableMap = $this->getTableMap(); |
|
| 715 | $relationMap = $tableMap->getRelation('Player'); |
|
| 716 | ||
| 717 | // create a ModelJoin object for this join |
|
| 718 | $join = new ModelJoin(); |
|
| 719 | $join->setJoinType($joinType); |
|
| 720 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 721 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 722 | $join->setPreviousJoin($previousJoin); |
|
| 723 | } |
|
| 724 | ||
| 725 | // add the ModelJoin to the current object |
|
| 726 | if ($relationAlias) { |
|
| 727 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 728 | $this->addJoinObject($join, $relationAlias); |
|
| 729 | } else { |
|
| 730 | $this->addJoinObject($join, 'Player'); |
|
| 731 | } |
|
| 732 | ||
| 733 | return $this; |
|
| 734 | } |
|
| 735 | ||
| 736 | /** |
|
| 737 | * Use the Player relation Player object |
|
| @@ 580-602 (lines=23) @@ | ||
| 577 | * |
|
| 578 | * @return $this|ChildPlayerQuery The current query, for fluid interface |
|
| 579 | */ |
|
| 580 | public function joinRecord($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 581 | { |
|
| 582 | $tableMap = $this->getTableMap(); |
|
| 583 | $relationMap = $tableMap->getRelation('Record'); |
|
| 584 | ||
| 585 | // create a ModelJoin object for this join |
|
| 586 | $join = new ModelJoin(); |
|
| 587 | $join->setJoinType($joinType); |
|
| 588 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 589 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 590 | $join->setPreviousJoin($previousJoin); |
|
| 591 | } |
|
| 592 | ||
| 593 | // add the ModelJoin to the current object |
|
| 594 | if ($relationAlias) { |
|
| 595 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 596 | $this->addJoinObject($join, $relationAlias); |
|
| 597 | } else { |
|
| 598 | $this->addJoinObject($join, 'Record'); |
|
| 599 | } |
|
| 600 | ||
| 601 | return $this; |
|
| 602 | } |
|
| 603 | ||
| 604 | /** |
|
| 605 | * Use the Record relation Record object |
|