|
@@ 983-994 (lines=12) @@
|
| 980 |
|
* |
| 981 |
|
* @return self |
| 982 |
|
*/ |
| 983 |
|
public function innerJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null) |
| 984 |
|
{ |
| 985 |
|
$parentAlias = substr($join, 0, strpos($join, '.')); |
| 986 |
|
|
| 987 |
|
$rootAlias = $this->findRootAlias($alias, $parentAlias); |
| 988 |
|
|
| 989 |
|
$join = new Expr\Join( |
| 990 |
|
Expr\Join::INNER_JOIN, $join, $alias, $conditionType, $condition, $indexBy |
| 991 |
|
); |
| 992 |
|
|
| 993 |
|
return $this->add('join', [$rootAlias => $join], true); |
| 994 |
|
} |
| 995 |
|
|
| 996 |
|
/** |
| 997 |
|
* Creates and adds a left join over an entity association to the query. |
|
@@ 1018-1029 (lines=12) @@
|
| 1015 |
|
* |
| 1016 |
|
* @return self |
| 1017 |
|
*/ |
| 1018 |
|
public function leftJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null) |
| 1019 |
|
{ |
| 1020 |
|
$parentAlias = substr($join, 0, strpos($join, '.')); |
| 1021 |
|
|
| 1022 |
|
$rootAlias = $this->findRootAlias($alias, $parentAlias); |
| 1023 |
|
|
| 1024 |
|
$join = new Expr\Join( |
| 1025 |
|
Expr\Join::LEFT_JOIN, $join, $alias, $conditionType, $condition, $indexBy |
| 1026 |
|
); |
| 1027 |
|
|
| 1028 |
|
return $this->add('join', [$rootAlias => $join], true); |
| 1029 |
|
} |
| 1030 |
|
|
| 1031 |
|
/** |
| 1032 |
|
* Sets a new value for a field in a bulk update query. |