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