Php- update column

Hii , I am trying to update a column for which i m getting erro cannot use object as array ,i followed the docs an implemted below code but dont know what problem is :

$add_voting = new Voting();
$add_voting->setRating($_POST[‘ml’]);

Backendless::$Persistence->of("Voting")->updateBulk( $add_voting, "Voting_id='V_57bc259a7c77c'" );

Hi Jack,
What exact error do you receive?
Artur

Fatal error: Cannot use object of type Voting as array

Please look at related topic on Stackoverflow:

Hope this helps,
Artur

Converting the object to array is also not helping as it returns “Unable to save object”.IDK why it is not saving the object as the docs are given as it is.