Comments (7)
same problem
from mongodb-odm.
I've figured out why this is happening. The primary identification strategy for an object is stored as the key of an array internally in their library. If this key happens to be of any other type other than string, it gives this illegal offset type error. So unless someone changes how these documents are stored internally, there's no fix for this issue.
from mongodb-odm.
im having the same issue with the "UUID" strategy. are you saying none of these strategies will work?
from mongodb-odm.
I've never tried '/** @id(strategy="UUID") */' . But I read that it is internally represented as a MongoBinData type? Going by that logic, it should not work either. Are you sure you facing the same issue?
from mongodb-odm.
After some toying around, I have to admit, it's probably not the same problem. I tried to change the strategy and read existing documents that were created with the default strategy, which lead to the same warning you mentioned in the opening post. After clearing the database, the UUID strategy worked fine.
from mongodb-odm.
Having the same issue.. has this not been addressed yet? :|
from mongodb-odm.
I don't think you can use MongoBinData as the _id. When I test manually with just mongo pecl extension it does not work either.
from mongodb-odm.
Related Issues (20)
- QueryBuilder is replacing "id" by "_id" when filtering on a hash field HOT 1
- Cannot override the class metadata factory via configuration since 2.5.0 HOT 3
- Indices from sub classes always get re-created HOT 3
- The implementation of Countable on the CachingIterator is causing the UniqueEntityValidator to always fail HOT 2
- 2dsphere indexes get re-created everytime HOT 1
- Mapping validation does not validate targetDocument
- README link to API is broken HOT 1
- BC Break if the storeEmptyArray is not defined in the mapping HOT 8
- Add `dm` input option to commands that requires it
- GridFs HydratorException : Expected association field "metadata" to be of type "array", "object" received HOT 4
- Embedded Subset Pattern implementation HOT 2
- MongoDB-ODM & Spiral framework. HOT 1
- Update embed many attribute to empty array HOT 3
- Issues with the compatibility of getRepository() function in MongoDB DocumentManager and Persistence ManagerRegistry
- Document is insert and then updated during one flush operation HOT 4
- Saving documents with embedded collections and default storage strategy leads to inconsistent state between in memory objects and database HOT 1
- Duplicate objectToArray keys in AggregationOperatorsProviderTrait HOT 1
- Issue in flush When duplication index error occurs. HOT 1
- Proxy methods in CreateCommand may be obsolete
- Implement `skip-<feature>` options in CLI commands HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-odm.