zf-fr / zfr-oauth2-server

PHP library for creating an OAuth 2 server (currently proof of concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`User implements ZfrOAuth2\Server\Entity\TokenOwnerInterface` might not use `id` as PK column_name

basz opened this issue · comments

Write an doctrine event listener that is capable of modifying the doctrine metadata for ZfrOAuth2.Server.Entity.AbstractToken.dcm.xml in such a way a non default column_name for the PK can be assigned.

User implements ZfrOAuth2\Server\Entity\TokenOwnerInterface might not use id as column_name.

think ZfcUser...

<many-to-one field="owner" target-entity="ZfrOAuth2\Server\Entity\TokenOwnerInterface" fetch="EAGER">
        <join-column on-delete="CASCADE" referenced-column-name="user_id" />
</many-to-one>