Limit by user via DoctrineExtension - API Platform Discovery training


Now that we have seen how to set up the authentication system, we want to be able to filter the content to display only the articles belonging to the user. Even though filters may seem like a viable solution, the best approach is to use a DoctrineExtension which will allow all results to be filtered for all types of collection.