Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace的时候create_time也被更新了 #1417

Closed
cos800 opened this issue Sep 10, 2018 · 1 comment
Closed

replace的时候create_time也被更新了 #1417

cos800 opened this issue Sep 10, 2018 · 1 comment

Comments

@cos800
Copy link
Contributor

cos800 commented Sep 10, 2018

$user = User::create([
    'name'  =>  'thinkphp',
    'email' =>  'thinkphp@qq.com'
], ['name','email'], true);
@liu21st
Copy link
Member

liu21st commented Sep 10, 2018

这只是一个选项 是否replace是数据库层面的 框架层面没法控制

@liu21st liu21st closed this as completed Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants