I have just got incubators mongodb to work with phalcon but when doing a simple find() it is returning a whole pile of other stuff I do not need.
Is there any way to reduce this to only the results from the table?
the result is huge so here is a sample of what I get returned...
[_dependencyInjector:protected] => Phalcon\Di\FactoryDefault Object
(
[_services:protected] => Array
(
[router] => Phalcon\Di\Service Object
(
[_name:protected] => router
[_definition:protected] => Phalcon\Mvc\Router
[_shared:protected] => 1
[_resolved:protected] => 1
[_sharedInstance:protected] => Phalcon\Mvc\Router Object
(
[_dependencyInjector:protected] => Phalcon\Di\FactoryDefault Object
*RECURSION*
[_eventsManager:protected] =>
[_uriSource:protected] =>
[_namespace:protected] =>
[_module:protected] =>
[_controller:protected] => user
[_action:protected] =>
[_params:protected] => Array
(
)
[_routes:protected] => Array
(
[0] => Phalcon\Mvc\Router\Route Object
(
[_pattern:protected] => #^/([\w0-9\_\-]+)[/]{0,1}$#u
[_compiledPattern:protected] => #^/([\w0-9\_\-]+)[/]{0,1}$#u
[_paths:protected] => Array
(
[controller] => 1
)
[_methods:protected] =>
.....
[_skipped:protected] =>
[address] => Array
(
[street] => 2 Avenue
[zipcode] => 10075
[building] => 1480
[coord] => Array
(
[0] => -73.9557413
[1] => 40.7720266
)
)
[borough] => Manhattan
[cuisine] => Italian
[grades] => Array
(
[0] => Array
(
[date] => MongoDB\BSON\UTCDateTime Object
(
[milliseconds] => 1412121600000
)
[grade] => A
[score] => 11
)
[1] => Array
(
[date] => MongoDB\BSON\UTCDateTime Object
(
[milliseconds] => 1389830400000
)
[grade] => B
[score] => 17
)
)
[name] => Vella
[restaurant_id] => 41704620
)
)
Any help would be gratefully received.