我遇到了Symfony2.0BETA3和MongoDB的问题。我想创建一个文档,其中一个字段引用到另一个类,这可能看起来像这样:namespacetest\TestBundle\Document;usetest\TestBundle\Document\Location;useDoctrine\ODM\MongoDB\Mapping\AnnotationsasODM;/***@ODM\Document(collection="locationcache",repositoryClass="test\TestBundle\Document\LocationCacheRepository")