0

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

I noticed in /Doctrine/ODM/MongoDB/Tests/Query there is an interesting queryBuilder argument, field('phonenumbers.$.phonenumber') where, in the User class, "phonenumbers" is an @embeddedDocument of class Phonenumber, and in class Phonenumber, "phonenumber" is a @string. My question is... what's this .$. syntax all about?

CommaToast
  • 11,370
  • 7
  • 54
  • 69

1 Answers1

0

It's the positional operator from MongoDB.

CommaToast
  • 11,370
  • 7
  • 54
  • 69