@@ 971-982 (lines=12) @@ | ||
968 | * |
|
969 | * @return self |
|
970 | */ |
|
971 | public function innerJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null) |
|
972 | { |
|
973 | $parentAlias = substr($join, 0, strpos($join, '.')); |
|
974 | ||
975 | $rootAlias = $this->findRootAlias($alias, $parentAlias); |
|
976 | ||
977 | $join = new Expr\Join( |
|
978 | Expr\Join::INNER_JOIN, $join, $alias, $conditionType, $condition, $indexBy |
|
979 | ); |
|
980 | ||
981 | return $this->add('join', [$rootAlias => $join], true); |
|
982 | } |
|
983 | ||
984 | /** |
|
985 | * Creates and adds a left join over an entity association to the query. |
|
@@ 1006-1017 (lines=12) @@ | ||
1003 | * |
|
1004 | * @return self |
|
1005 | */ |
|
1006 | public function leftJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null) |
|
1007 | { |
|
1008 | $parentAlias = substr($join, 0, strpos($join, '.')); |
|
1009 | ||
1010 | $rootAlias = $this->findRootAlias($alias, $parentAlias); |
|
1011 | ||
1012 | $join = new Expr\Join( |
|
1013 | Expr\Join::LEFT_JOIN, $join, $alias, $conditionType, $condition, $indexBy |
|
1014 | ); |
|
1015 | ||
1016 | return $this->add('join', [$rootAlias => $join], true); |
|
1017 | } |
|
1018 | ||
1019 | /** |
|
1020 | * Sets a new value for a field in a bulk update query. |