fix delete
This commit is contained in:
parent
17dd5e18d3
commit
9c044353d0
|
@ -364,7 +364,7 @@ abstract class ActiveRecord extends BaseActiveRecord
|
|||
*/
|
||||
protected function deleteInternal()
|
||||
{
|
||||
$condition = $this->getOldPrimaryKey();
|
||||
$condition = $this->getOldPrimaryKey(true);
|
||||
$lock = $this->optimisticLock();
|
||||
if ($lock !== null) {
|
||||
$condition[$lock] = $this->$lock;
|
||||
|
|
Loading…
Reference in New Issue