-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony mongodb objectID error #376
Comments
This looks like it could be an issue in mongo-php-adapter. I've created an issue there and will take a look at it later today. Thanks for the report! |
I've fixed this in mongo-php-adapter - could you give |
I am still having same issue:
|
Please create a ticket at https://github.com/alcaeus/mongo-php-adapter/issues along with the following information:
I'm locking this ticket since this is not an issue with the bundle or with MongoDB ODM, so future issues will be directed to the adapter directly. |
Im trying to insert data into mongodb from symfony, and i got the error like
} elseif ($id instanceof self || $id instanceof ObjectID) { $this->objectID = new ObjectID((string) $id); } else { $this->objectID = new ObjectId(); } } catch (\Exception $e) { throw new MongoException('Invalid object ID', 19);
The text was updated successfully, but these errors were encountered: