0

在 Doctrine 中,美元符号在点语法中的含义是什么,例如 property.$.otherProperty?

我注意到在 /Doctrine/ODM/MongoDB/Tests/Query 中有一个有趣的 queryBuilder 参数 field('phonenumbers.$.phonenumber') ,其中,在 User 类中,“phonenumbers”是类 Phonenumber 的 @embeddedDocument,并且在类电话号码,“电话号码”是一个@string。我的问题是......这是什么.$。语法是什么?

4

1 回答 1

0

它是来自 MongoDB 的位置运算符。

于 2014-10-31T01:56:27.427 回答