How i can access to private data PHP?

I have this problem Fatal error: Cannot access private property.i tried Backendless::$Persistence->of( ‘Foto’ )->find($query)->getAsObject() for which i m getting error trying to get a property of an non-object.

Hi Gagan,

You are retrieving collection of objects. Try getAsArray() method.

Regards,

Denys