瀏覽代碼

[DoctrineMongoDBBundle] fixed error when logging bin values in queries

Kris Wallsmith 14 年之前
父節點
當前提交
c36612b78b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/DoctrineMongoDBBundle/Logger/DoctrineMongoDBLogger.php

+ 1 - 1
src/Symfony/Bundle/DoctrineMongoDBBundle/Logger/DoctrineMongoDBLogger.php

@@ -93,7 +93,7 @@ class DoctrineMongoDBLogger
             } elseif ($value instanceof \MongoMaxKey) {
                 $formatted = 'new MaxKey()';
             } elseif ($value instanceof \MongoBinData) {
-                $formatted = 'new BinData("'.$formatted->bin.'", "'.$formatted->type.'")';
+                $formatted = 'new BinData("'.$value->bin.'", "'.$value->type.'")';
             } else {
                 $formatted = (string) $value;
             }