Skip to content

Commit

Permalink
调整Raw对象 取消__toString方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 25, 2022
1 parent 149d266 commit 407a606
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/db/Raw.php
Expand Up @@ -64,8 +64,4 @@ public function getBind(): array
return $this->bind;
}

public function __toString()
{
return (string) $this->value;
}
}

4 comments on commit 407a606

@big-dream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试恢复正常 👍 谢谢老大

@liuxiaojinla
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User::fields([Db::raw('count(1) as count'),'name'])->group('name')->select();
这样的用法用不了了

@big-dream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liuxiaojinla 没有fields方法吧?

@liuxiaojinla
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

手误 是 field 的方法

Please sign in to comment.