Workaround for empty example document bug

This commit is contained in:
bethrezen
2014-06-16 15:03:26 +04:00
parent 49ab837591
commit 8bcf826c25
2 changed files with 21 additions and 2 deletions

19
Connection.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace devgroup\arangodb;
use \triagens\ArangoDb\ConnectionOptions;
class Connection extends \triagens\ArangoDb\Connection {
public function json_encode_wrapper($data, $options = null)
{
if ($this->getOption(ConnectionOptions::OPTION_CHECK_UTF8_CONFORM) === true) {
self::check_encoding($data);
}
$response = json_encode($data, $options | JSON_FORCE_OBJECT);
return $response;
}
}