Weak references is related to garbage collector basically, there are good examples of how to use it in nodejs and java. It helps the garbage collector identify what it can get, not when, but which objects/vars and etc...
It's a kind of feature that will help projects like doctrine, that can consume a lot of resources because of the references through objects and so on.
Did you get it or it was confused?
Yup, I got the concept but couldn't find a real-life example. I guess I never had to deal with such type of functionality in any project, like holding big graphs of object relations.
Funny enough, Ocramius, a Doctrine core maintainer, voted against weak references feature 🤷♂️
Thanks for the comment!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.