Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing ODM mappings to docs #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Resources/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ class AuthCode extends BaseAuthCode
{
protected $id;
protected $client;
protected $user;

public function getClient()
{
Expand All @@ -344,6 +345,7 @@ class AuthCode extends BaseAuthCode
<document name="Acme\ApiBundle\Document\AuthCode" db="acme" collection="oauthAuthCode" customId="true">
<field fieldName="id" id="true" strategy="AUTO" />
<reference-one target-document="Acme\ApiBundle\Document\Client" field="client" />
<reference-one target-document="Acme\ApiBundle\Document\User" field="user" />
</document>

</doctrine-mongo-mapping>
Expand All @@ -363,6 +365,7 @@ class AccessToken extends BaseAccessToken
{
protected $id;
protected $client;
protected $user;

public function getClient()
{
Expand All @@ -387,6 +390,7 @@ class AccessToken extends BaseAccessToken
<document name="Acme\ApiBundle\Document\AccessToken" db="acme" collection="oauthAccessToken" customId="true">
<field fieldName="id" id="true" strategy="AUTO" />
<reference-one target-document="Acme\ApiBundle\Document\Client" field="client" />
<reference-one target-document="Acme\ApiBundle\Document\User" field="user" />
</document>

</doctrine-mongo-mapping>
Expand All @@ -406,6 +410,7 @@ class RefreshToken extends BaseRefreshToken
{
protected $id;
protected $client;
protected $user;

public function getClient()
{
Expand All @@ -430,6 +435,7 @@ class RefreshToken extends BaseRefreshToken
<document name="Acme\ApiBundle\Document\RefreshToken" db="acme" collection="oauthRefreshToken" customId="true">
<field fieldName="id" id="true" strategy="AUTO" />
<reference-one target-document="Acme\ApiBundle\Document\Client" field="client" />
<reference-one target-document="Acme\ApiBundle\Document\User" field="user" />
</document>

</doctrine-mongo-mapping>
Expand Down