Hi, I am new to MongoDB and I currently working with Symfony2 and Doctrine
I ultimately need 3 collections.. one for users, another one for items and 
the last one for users_items
the documents... should be of this form... for example

users
{ "_id":1, "name":"dummy user" }

items
{ "_id":1, "category":"something here" }

users_item
{ "_id":ObjectID, "users_id":1, "items_id":1, "date":ISODate }

How can I achieve this??

I "think" this might help.. but it isn't what I am looking for.. 

users:
  customId: true
  fields:
    id:
      id: true
      strategy: NONE
    name:
       type: string
  referenceMany:
    items:
      targetDocument: Documents\items

items:
  customId: true
  fields:
    id:
      id: true
      strategy: NONE
    category:
      type: string
  referenceMany:
    users:
      targetDocument: Documents\users

but what about the users_items collection?? and where do I put the date 
field?

please help
thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to