public function deleteMulti(array $arr_entities)
    {

        // Build the base request
        $obj_request = $this->buildCommitRequest();

        // Create JSON keys for each delete mutation
        foreach($arr_entities as $obj_gds_entity) {
            $obj_rest_key = (object)['path' => $this->createMapper()->buildKeyPath($obj_gds_entity)];
            $this->applyPartition($obj_rest_key);
            $obj_request->mutations[] = (object)['delete' => $obj_rest_key];
        }

        // Run
        $this->executePostRequest('commit', $obj_request);

        return true; // Still not sure about this...
    }
public function deleteMulti(array $arr_entities)
    {

        // Build the base request
        $obj_request = $this->buildCommitRequest();

        // Create JSON keys for each delete mutation
        foreach($arr_entities as $obj_gds_entity) {
            $obj_rest_key = (object)['path' => $this->createMapper()->buildKeyPath($obj_gds_entity)];
            $this->applyPartition($obj_rest_key);
            $obj_request->mutations[] = (object)['delete' => $obj_rest_key];
        }

        // Run
        $this->executePostRequest('commit', $obj_request);

        return true; // Still not sure about this...
    }
public function deleteMulti ( array $ arr_entities ) { // Build the base request $ obj_request = $ this -> buildCommitRequest ( ) ; // Create JSON keys for each delete mutation foreach ( $ arr_entities as $ obj_gds_entity ) { $ obj_rest_key = ( object ) [ 'path' => $ this -> createMapper ( ) -> buildKeyPath ( $ obj_gds_entity ) ] ; $ this -> applyPartition ( $ obj_rest_key ) ; $ obj_request -> mutations [ ] = ( object ) [ 'delete' => $ obj_rest_key ] ; } // Run $ this -> executePostRequest ( 'commit' , $ obj_request ) ; return true ; // Still not sure about this... }
Delete 1-many entities

@param array $arr_entities
@return mixed
Delete 1 - many entities