eee
This commit is contained in:
+29
-2
@@ -104,6 +104,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
* @throws
|
* @throws
|
||||||
@@ -147,6 +148,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -157,6 +159,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -182,6 +185,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|Closure $tableName
|
* @param string|Closure $tableName
|
||||||
*
|
*
|
||||||
@@ -196,6 +200,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
@@ -274,6 +279,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
@@ -294,6 +300,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this->join("LEFT JOIN " . $tableName, $alias, $onCondition, $param);
|
return $this->join("LEFT JOIN " . $tableName, $alias, $onCondition, $param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
@@ -314,6 +321,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this->join("RIGHT JOIN " . $tableName, $alias, $onCondition, $param);
|
return $this->join("RIGHT JOIN " . $tableName, $alias, $onCondition, $param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
@@ -334,6 +342,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this->join("INNER JOIN " . $tableName, $alias, $onCondition, $param);
|
return $this->join("INNER JOIN " . $tableName, $alias, $onCondition, $param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $field
|
* @param string $field
|
||||||
*
|
*
|
||||||
@@ -345,6 +354,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $field
|
* @param string $field
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -355,6 +365,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $lngField
|
* @param string $lngField
|
||||||
* @param string $latField
|
* @param string $latField
|
||||||
@@ -370,6 +381,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|array $column
|
* @param string|array $column
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
@@ -397,6 +409,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param string $sort
|
* @param string $sort
|
||||||
@@ -414,6 +427,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $column
|
* @param array $column
|
||||||
*
|
*
|
||||||
@@ -425,6 +439,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
@@ -434,6 +449,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|Closure|string $conditionArray
|
* @param array|Closure|string $conditionArray
|
||||||
* @param string $opera
|
* @param string $opera
|
||||||
@@ -470,6 +486,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param string $value
|
* @param string $value
|
||||||
@@ -482,6 +499,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param string $value
|
* @param string $value
|
||||||
@@ -551,6 +569,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param int|float $start
|
* @param int|float $start
|
||||||
@@ -570,6 +589,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param int|float $start
|
* @param int|float $start
|
||||||
@@ -589,6 +609,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -599,14 +620,19 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $column
|
* @param array|string $column
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function where(array $column): static
|
public function where(array|string $column): static
|
||||||
{
|
{
|
||||||
|
if (is_string($column)) {
|
||||||
|
return $this->whereRaw($column);
|
||||||
|
} else {
|
||||||
return $this->addArray($column);
|
return $this->addArray($column);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -667,6 +693,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $limit
|
* @param int $limit
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user