how to get return after value when after Updated

20 views
Skip to first unread message

Pugazharasan Thirumalai

unread,
Jul 25, 2016, 9:03:34 AM7/25/16
to OrientDB
Hai,

This is my update query

 $sql = "update #266:0 set sms_credit = 25 return after \$current.include('sms_credit')";

after updated, i printed 

print_r($res); 

and am getting  this array,

Array ( [0] => OrientDBRecord Object ( [isParsed:OrientDBRecord:private] => [className:OrientDBRecord:private] => [type] => d [clusterID:OrientDBRecord:private] => -1 [recordPos:OrientDBRecord:private] => -1 [recordID:OrientDBRecord:private] => [version] => 0 [content:OrientDBRecord:private] => sms_credit:25 [data] => OrientDBData Object ( [data:OrientDBData:private] => Array ( ) [record:OrientDBData:private] => OrientDBRecord Object *RECURSION* ) ) )

From this i can get content value by,

print_r($res[0]->content);  using this am getting,

sms_credit:25

now i want to get that sms_credit value.

How can i get that value?


Thanks and Regards,
T.Pugazharasan

Reply all
Reply to author
Forward
0 new messages