-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathAuthCode.orm.xml
19 lines (19 loc) · 1.07 KB
/
AuthCode.orm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
<entity name="Trikoder\Bundle\OAuth2Bundle\Model\AuthCode" table="oauth2_auth_code">
<id name="identifier" type="string" length="80">
<options>
<option name="fixed">true</option>
</options>
</id>
<field name="expiry" type="datetime" />
<field name="userIdentifier" type="string" length="128" nullable="true" />
<field name="scopes" type="oauth2_scope" nullable="true" />
<field name="revoked" type="boolean" />
<many-to-one field="client" target-entity="Trikoder\Bundle\OAuth2Bundle\Model\Client">
<join-column name="client" referenced-column-name="identifier" nullable="false" />
</many-to-one>
</entity>
</doctrine-mapping>