CakePHP3 After removal of afterFind, where to check if query result empty?

Viewed 1656

Before i checked in the afterFind callback if the result of the find is empty. Since the callback was removed in latest versions, where would be the place to check that from a behavior?

Im not realy sure if that is what i need. My use case is, i want to find out if a query has no result. Then i would create a default entry so it has 1 result.

1 Answers
Related