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

完善 QDB_ActiveRecord_Abstract::destroy() #34

Closed
GoogleCodeExporter opened this issue Apr 15, 2015 · 4 comments
Closed

完善 QDB_ActiveRecord_Abstract::destroy() #34

GoogleCodeExporter opened this issue Apr 15, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

destroy() 方法的逻辑应该是:

首先删除已有的关联对象,再删除当前对象。是否删除关联��
�象,要根据关联的
on_delete 设置来决定。

destroy() 应该有一个 $use_transaction 参数。该参数为 true 
时,会启用事务。
但在删除关联对象时,这个参数应该指定为 
false。这样可以把嵌套的删除操作封装
在同一个事务中。

Original issue reported on code.google.com by dualf...@gmail.com on 18 Apr 2008 at 7:12

@GoogleCodeExporter
Copy link
Author

Original comment by dualf...@gmail.com on 18 Apr 2008 at 7:18

  • Added labels: Priority-Critical
  • Removed labels: Priority-High

@GoogleCodeExporter
Copy link
Author

Original comment by dualf...@gmail.com on 19 Apr 2008 at 8:28

  • Added labels: Component-ActiveRecord, Milestone-2.0

@GoogleCodeExporter
Copy link
Author

Original comment by dualf...@gmail.com on 19 Apr 2008 at 8:30

@GoogleCodeExporter
Copy link
Author

Original comment by dualf...@gmail.com on 5 May 2008 at 7:32

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant