mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
Fix type
This commit is contained in:
parent
736d61669c
commit
3d77fd8e35
|
|
@ -1593,7 +1593,6 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
*/
|
*/
|
||||||
public static function getAllByQuery(Builder $query, int $relations = RelationType::ALL) : array
|
public static function getAllByQuery(Builder $query, int $relations = RelationType::ALL) : array
|
||||||
{
|
{
|
||||||
$query = self::getQuery($query);
|
|
||||||
$sth = self::$db->con->prepare($query->toSql());
|
$sth = self::$db->con->prepare($query->toSql());
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
|
||||||
|
|
@ -1836,7 +1835,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
$list = $request->getData('list');
|
$list = $request->getData('list');
|
||||||
$result = static::get(json_decode($list, true));
|
$result = static::get(json_decode($list, true));
|
||||||
} else {
|
} else {
|
||||||
$limit = $request->getData('limit') ?? 1;
|
$limit = (int) ($request->getData('limit') ?? 1);
|
||||||
$from = !is_null($request->getData('from')) ? new \DateTime($request->getData('from')) : null;
|
$from = !is_null($request->getData('from')) ? new \DateTime($request->getData('from')) : null;
|
||||||
$to = !is_null($request->getData('to')) ? new \DateTime($request->getData('to')) : null;
|
$to = !is_null($request->getData('to')) ? new \DateTime($request->getData('to')) : null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user