This is PHP version ... ?

My thought is that fetchAll() is returning a recordset/cursor, not an array, and there is magic going on when it's "trace"'d out.

So you'll need to convert it to a real array of objects. I dunno if PDO has a method for that or if you'll need to build it yourself with a loop.

Tom


On 06/04/17 05:47, bilbosax wrote:
I am unable to find a clean way to set my return values from the webservice
in Flex.  It is just returning an object.  So in PDO, I am doing this:

$result = $stmt->fetchAll(PDO::FETCH_ASSOC);         
return $result;

Reply via email to