Skip to content

Status of foreign key relations #1597

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

Closed
cvele opened this issue Sep 6, 2018 · 0 comments
Closed

Status of foreign key relations #1597

cvele opened this issue Sep 6, 2018 · 0 comments

Comments

@cvele
Copy link

cvele commented Sep 6, 2018

First of all: Is this project maintained? 285 open issues, 40 open pull requests, foreign keys not implemented, serialization and hydration of BSONArray non-existant (oneToMany). These are all very basic requirements for production ready orm.

Due to issue of foreign keys being saved as strings instead of objectid, relations between mongodb documents are effectively non-functional, documentation suggest otherwise.
This results in package being integrated in project which results only with headaches for everyone involved, as soon as they see that relationships are pure cosmetics. Especially so from read context.

This issue has been reported again and again, there is even a pr #1523 that got lost in the crowd of 40 (at the time of writing) open pull requests.

Then you decide to use raw queries and cast objectId to string and vice versa, depending on requirements. Great, fixed.

Moments later you figure out that with oneToMany relations do not get hydrated, again undocumented. Setting up type map for connection, again produces no results as hydrator does not know what to do with simple array.

Has anyone figured out at least a hack, if there is no proper solution, for these scenarios?
Is there a plan to document missing features so that developers in the future do not get caught in this honey trap ?
Is there a fork out there that took care of these issues?

@cvele cvele closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant