mongodb - doctrine ODM / Mongo DB and Object References -


for life of me, can not find answer problem. so, i'll ask here.

let's have 3 document types in mongo.

// provider {    $id: objectid('xxx'),    "name": "some name", }  // category {    $id: objectid('yyy'),    "name": "some category" }  // item {   $id: objectid('zzz'),   "name": "some item",   "references": {       "provider": {         $ref: "provider",         $id: objectid('xxx')      },      "category": [          {              $ref: "category",              $id: objectid('yyy')          }          // etc etc, more referenced categories      ]   } } 

now, how annotate doctrine entity can read out , query referenced objects. clarity keep external references within "references" block.

any appreciated.

marc


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -