Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Code example for delete method is inaccurate #20

Open
boybert opened this issue Nov 14, 2012 · 0 comments
Open

Code example for delete method is inaccurate #20

boybert opened this issue Nov 14, 2012 · 0 comments

Comments

@boybert
Copy link

boybert commented Nov 14, 2012

The example code for the delete method on the opensource.brightcove.com website is incorrect.

It reads:

// Delete a 'video' by ID, and cascade the deletion
$bc->delete('video', 123456789, NULL, TRUE);

but that example does not work. It should read:

// Delete a 'video' by ID, and cascade the deletion
$bc->delete('video', 123456789, NULL, array('cascade'=>TRUE));

Indicating that the options parameter is expecting an associative array.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant