Browse Source

Method "\yii\mogo\ActiveRecord::equals()" fixed.

tags/2.0.0-beta
Paul Klimov 11 years ago
parent
commit
380d1d02fb
  1. 2
      extensions/mongo/ActiveRecord.php

2
extensions/mongo/ActiveRecord.php

@ -348,6 +348,6 @@ abstract class ActiveRecord extends BaseActiveRecord
if ($this->isNewRecord || $record->isNewRecord) {
return false;
}
return $this->collectionName() === $record->collectionName() && $this->getPrimaryKey() === $record->getPrimaryKey();
return $this->collectionName() === $record->collectionName() && (string)$this->getPrimaryKey() === (string)$record->getPrimaryKey();
}
}
Loading…
Cancel
Save