parse.com-php-library
parse.com-php-library copied to clipboard
implementing relations
trafficstars
in parse.php I've added this case in the function dataTypes to handle relations:
case 'relation':
$return = array(
"__op" => "AddRelation",
"objects" => array($this->dataType('pointer', $params))
);
break;
...
I think this is the best way to handle it. Check it out, params are the same for the 'pointer' case.