Как я могу добавить @Distance в файл сопоставления yaml? Я пробовал и не работает.
CP\AppBundle\Document\Point:
type: embeddedDocument
embedOne:
address:
targetDocument: CP\AppBundle\Document\Address
coordinates:
targetDocument: CP\AppBundle\Document\Coordinates
distance: distance
indexes:
coordinates:
keys:
coordinates: 2d
Большое спасибо!