Commit 380d1d02 by Paul Klimov

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

parent 47249ff3
......@@ -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();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment