flush
[m6w6/pq-gateway] / lib / pq / Gateway / Row.php
index a8b879370f347b4ad494edd78d99a25d7b079328..0a2820aa612b5462fd537a214d0c3bff63ef4e83 100644 (file)
@@ -26,7 +26,7 @@ class Row implements \JsonSerializable
         */
        function __construct(Table $table, array $data = null, $prime = false) {
                $this->table = $table;
-               $this->data = $data;
+               $this->data = (array) $data;
                
                if ($prime) {
                        $this->prime();