thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.52k stars 1.12k forks source link

Relation between entities/models #1357

Closed AurelienPillevesse closed 1 year ago

AurelienPillevesse commented 1 year ago

I have a question about the organization between the entities/models. I can see that all (or most) relationships are done by identifiers.

Why aren't relations made between entities directly instead of using string identifiers?

Sephster commented 1 year ago

The database implementation is largely up to you. If you want to add relations to enforce referential integrity, you should be able to afaik

AurelienPillevesse commented 1 year ago

Thanks for your answer