demos-europe / edt

Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2 stars 1 forks source link

Handle entity details by repository #163

Open joorei opened 2 months ago

joorei commented 2 months ago

Some methods in RepositoryInterface require the property path to the entity's ID from the caller. This is not correct, as such details should automatically be handled by the repository instance. Keeping the parameter as optional may be acceptable (but still needs to be evaluated), however, if none is provided, the repository must automatically use a fallback, e.g. one that was provided on instantiation.