Use UsersRepository in UsersController
Convert tabs to spaces
Update meta information and add entities and validators to autoloading
Create an EntityInterface
Create an abstract Entity which implements EntityInterface
Create a UserEntity
Use the UserEntity in UsersController
Remove line break
Rename Entities to Services
Rename usersRepository to users in UsersController
PhotoRepository returns Models not arrays
Use PhotoService in PhotosController
Create PhotoService
Put repeating test logic into TestCase
Call get() on Photo model
Create allWithUsers() for PhotoService
Call repository->delete($id) on service's delete