parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

implementing relations

Open StefanoJ opened this issue 12 years ago • 0 comments
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.

StefanoJ avatar Jun 08 '13 16:06 StefanoJ