How to access objects from queried results in PHP?

How do I access the BLDevice objects that are in $result?

$query = new BackendlessDataQuery();
$query->setWhereClause(“user.objectId = ‘$userId’”);
$result = Backendless::$Persistence->of(‘BLDevice’)->find($query);

Hi Barry,

You need to use one of getAs.. methods of BackendlessCollection.