Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cannot pass parameter 1 by reference with MongoCollection
#$collection->insert(['id' => 1]); // Cannot pass parameter 1 by reference
$a = ['id' => 1];
$collection->insert($a);
@webdevilopers
Copy link
Author

webdevilopers commented Mar 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment