You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.
Define object for parse class
$parseObject = new parseObject("Authorized_Rooms_Scenes");
Get objectId for a record I want to delete.
$obj_ID=getObjectId($table,$field,$fieldVal); // custom function
Now I delete as below
$parseObject->delete($data);
Is there any way to bypass 2nd step? It's really taking much time for me to parse through all records to find a single objectId. Please someone help me out.
The text was updated successfully, but these errors were encountered:
Can't you just query for the objectId? $objectId = $parseQuery->where($field, $fieldVal)
Anyway when you call $parseObject->delete() you should be using $objectId as the parameter and not the actual object as you appear to be doing with $data.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is how I usually delete a record
$parseObject = new parseObject("Authorized_Rooms_Scenes");
$obj_ID=getObjectId($table,$field,$fieldVal); // custom function
$parseObject->delete($data);
Is there any way to bypass 2nd step? It's really taking much time for me to parse through all records to find a single objectId. Please someone help me out.
The text was updated successfully, but these errors were encountered: