diff --git a/src/model/concern/RelationShip.php b/src/model/concern/RelationShip.php index 33c1b890e39566b5aace20f9e190213afd557b45..caf1df3d97b299d6c144cb1ff7d70460ed03643e 100644 --- a/src/model/concern/RelationShip.php +++ b/src/model/concern/RelationShip.php @@ -208,7 +208,7 @@ trait RelationShip * @param Query $query Query对象 * @return Query */ - public static function hasWhere(string $relation, $where = [], string $fields = '*', string $joinType = '', Query $query = null): Query + public static function hasWhere(string $relation, $where = [], $fields = '*', string $joinType = '', Query $query = null): Query { return (new static()) ->$relation()