在条令中,美元符号在点语法中的意思是什么,比如property.$.其他财产


In Doctrine, what does dollar sign mean in dot syntax like, property.$.otherProperty?

在Doctrine中,美元符号在像property.$这样的点语法中意味着什么。其他财产?

我注意到在/ODoctrine/ODM/MongoDB/Tests/Query中有一个有趣的queryBuilder参数,字段("phonenumers.$.phonenumber"),其中,在User类中,"phonenumbers"是Phonenume类的@embeddedDocument,而在Phonenume中,"phone"是@字符串。我的问题是…这是什么。语法是关于什么的?

它是MongoDB中的位置运算符。