This commit is contained in:
thinkphp
2016-05-19 18:42:45 +08:00

View File

@@ -617,9 +617,10 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
* 查找单条记录 * 查找单条记录
* @access public * @access public
* @param mixed $data 主键值或者查询条件(闭包) * @param mixed $data 主键值或者查询条件(闭包)
* @param string $with 关联预查询 * @param array|string $with 关联预查询
* @param bool $cache 是否缓存 * @param bool $cache 是否缓存
* @return \think\Model * @return static
* @throws exception\DbException
*/ */
public static function get($data = '', $with = [], $cache = false) public static function get($data = '', $with = [], $cache = false)
{ {
@@ -631,9 +632,10 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
* 查找所有记录 * 查找所有记录
* @access public * @access public
* @param mixed $data 主键列表或者查询条件(闭包) * @param mixed $data 主键列表或者查询条件(闭包)
* @param string $with 关联预查询 * @param array|string $with 关联预查询
* @param bool $cache 是否缓存 * @param bool $cache 是否缓存
* @return array|false|string * @return static[]|false
* @throws exception\DbException
*/ */
public static function all($data = [], $with = [], $cache = false) public static function all($data = [], $with = [], $cache = false)
{ {