mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge branch 'master' of https://github.com/top-think/framework
This commit is contained in:
@@ -616,10 +616,11 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
/**
|
||||
* 查找单条记录
|
||||
* @access public
|
||||
* @param mixed $data 主键值或者查询条件(闭包)
|
||||
* @param string $with 关联预查询
|
||||
* @param bool $cache 是否缓存
|
||||
* @return \think\Model
|
||||
* @param mixed $data 主键值或者查询条件(闭包)
|
||||
* @param array|string $with 关联预查询
|
||||
* @param bool $cache 是否缓存
|
||||
* @return static
|
||||
* @throws exception\DbException
|
||||
*/
|
||||
public static function get($data = '', $with = [], $cache = false)
|
||||
{
|
||||
@@ -630,10 +631,11 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
/**
|
||||
* 查找所有记录
|
||||
* @access public
|
||||
* @param mixed $data 主键列表或者查询条件(闭包)
|
||||
* @param string $with 关联预查询
|
||||
* @param bool $cache 是否缓存
|
||||
* @return array|false|string
|
||||
* @param mixed $data 主键列表或者查询条件(闭包)
|
||||
* @param array|string $with 关联预查询
|
||||
* @param bool $cache 是否缓存
|
||||
* @return static[]|false
|
||||
* @throws exception\DbException
|
||||
*/
|
||||
public static function all($data = [], $with = [], $cache = false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user