danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

Cannot pluck() on a get() #147

Closed opengeek closed 7 years ago

opengeek commented 7 years ago

When attempting to pluck() fields when using get() to select an OBJECT, php-rql triggers the error:

Runtime error: Cannot convert OBJECT to SEQUENCE

This works fine when running in the js API.

opengeek commented 7 years ago

Nevermind, this was a problem with my code that was trying to distinguish a Get instance from other ValuedQueries after a Pluck had been applied.