Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
moved 'type' field to root level
Browse files Browse the repository at this point in the history
  • Loading branch information
janpieper committed Nov 3, 2011
1 parent c6296ae commit dea3bf2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions en/reference/association-mapping.rst
Expand Up @@ -51,19 +51,19 @@ In CouchDB two documents with this relationship will look like:
"_id": "1234", "_id": "1234",
"doctrine_metadata": "doctrine_metadata":
{ {
"type": "Article",
"assocations": "assocations":
{ {
"author": "54321" "author": "54321"
} }
}, },
"title": "An article" "title": "An article",
"type": "Article"
} }
{ {
"_id": "54321", "_id": "54321",
"doctrine_metadata": {"type": "User" }, "name": "Benjamin",
"name": "Benjamin" "type": "User"
} }
ReferenceMany ReferenceMany
Expand Down Expand Up @@ -98,25 +98,25 @@ In CouchDB documents with this relationship will look like:
"_id": "1234", "_id": "1234",
"doctrine_metadata": "doctrine_metadata":
{ {
"type": "Article",
"associations": "associations":
{ {
"comments": ["55555", "44444"], "comments": ["55555", "44444"],
} }
}, },
"title": "An article", "title": "An article",
"type": "Article"
} }
{ {
"_id": "55555", "_id": "55555",
"doctrine_metadata": {"type": "Comment" }, "text": "Thank you!",
"text": "Thank you!" "type": "Comment"
} }
{ {
"_id": "44444", "_id": "44444",
"doctrine_metadata": {"type": "Comment" }, "text": "Very informative!",
"text": "Very informative!" "type": "Comment"
} }
Inverse ReferenceMany Inverse ReferenceMany
Expand Down Expand Up @@ -150,8 +150,8 @@ In CouchDB documents with this relationship will look like:
{ {
"_id": "54321", "_id": "54321",
"doctrine_metadata": {"type": "User" }, "name": "Benjamin",
"name": "Benjamin" "type": "User"
} }
See how no "associations" key is present in the "doctrine_metadata" key. A view See how no "associations" key is present in the "doctrine_metadata" key. A view
Expand Down

0 comments on commit dea3bf2

Please sign in to comment.