Skip to content
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