ttgive / qeephp

Automatically exported from code.google.com/p/qeephp
0 stars 0 forks source link

完善 QDB_ActiveRecord_Abstract::destroy() #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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