Say I have two entities in Doctrine2 that are related to each other, Models\\User and Models\\Comment. If I do this in Doctrine 2.0.0...
Unfortunately, I don't think query by relationships is supported directly via repository objects.
In this case, you are probably best to write a custom repository class with a findByUser method.
Don't forget to update your Comment entity to use the custom repository: