mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 21:41:36 +08:00
改进关联查询方法relation
This commit is contained in:
@@ -590,6 +590,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
* 更新数据
|
||||
* @access public
|
||||
* @param array $data 数据数组
|
||||
* @param array $where 更新条件
|
||||
* @return integer
|
||||
*/
|
||||
public static function update($data = [], $where = [])
|
||||
@@ -702,7 +703,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
* @param string|array $relations 关联名
|
||||
* @return Model
|
||||
*/
|
||||
public function relation($relations)
|
||||
public function relationQuery($relations)
|
||||
{
|
||||
if (is_string($relations)) {
|
||||
$relations = explode(',', $relations);
|
||||
|
||||
Reference in New Issue
Block a user