From 10ad8ec03496d453ab1058a7f90a4e6d1a435a2c Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sat, 6 Jan 2018 09:48:59 +0100 Subject: [PATCH] rename TimesheetQuery class #25 (#29) --- src/TimesheetBundle/Controller/TimesheetControllerTrait.php | 2 +- src/TimesheetBundle/Form/TimesheetToolbarForm.php | 2 +- .../Model/Query/{Timesheet.php => TimesheetQuery.php} | 2 +- src/TimesheetBundle/Repository/TimesheetRepository.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/TimesheetBundle/Model/Query/{Timesheet.php => TimesheetQuery.php} (99%) diff --git a/src/TimesheetBundle/Controller/TimesheetControllerTrait.php b/src/TimesheetBundle/Controller/TimesheetControllerTrait.php index 28c9efe6..d7eac081 100644 --- a/src/TimesheetBundle/Controller/TimesheetControllerTrait.php +++ b/src/TimesheetBundle/Controller/TimesheetControllerTrait.php @@ -18,7 +18,7 @@ use TimesheetBundle\Entity\Timesheet; use Symfony\Component\HttpFoundation\Request; use TimesheetBundle\Form\TimesheetToolbarForm; use TimesheetBundle\Repository\TimesheetRepository; -use TimesheetBundle\Model\Query\Timesheet as TimesheetQuery; +use TimesheetBundle\Model\Query\TimesheetQuery; /** * Helper functions for Timesheet controller diff --git a/src/TimesheetBundle/Form/TimesheetToolbarForm.php b/src/TimesheetBundle/Form/TimesheetToolbarForm.php index c7b93965..4ba3383c 100644 --- a/src/TimesheetBundle/Form/TimesheetToolbarForm.php +++ b/src/TimesheetBundle/Form/TimesheetToolbarForm.php @@ -18,7 +18,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; use TimesheetBundle\Form\Type\ActivityType; use TimesheetBundle\Form\Type\CustomerType; use TimesheetBundle\Form\Type\ProjectType; -use TimesheetBundle\Model\Query\Timesheet as TimesheetQuery; +use TimesheetBundle\Model\Query\TimesheetQuery; /** * Defines the form used for filtering the timesheet. diff --git a/src/TimesheetBundle/Model/Query/Timesheet.php b/src/TimesheetBundle/Model/Query/TimesheetQuery.php similarity index 99% rename from src/TimesheetBundle/Model/Query/Timesheet.php rename to src/TimesheetBundle/Model/Query/TimesheetQuery.php index c58a7569..601b3b2b 100644 --- a/src/TimesheetBundle/Model/Query/Timesheet.php +++ b/src/TimesheetBundle/Model/Query/TimesheetQuery.php @@ -21,7 +21,7 @@ use TimesheetBundle\Entity\Project; * * @author Kevin Papst */ -class Timesheet +class TimesheetQuery { const DEFAULT_PAGESIZE = 25; diff --git a/src/TimesheetBundle/Repository/TimesheetRepository.php b/src/TimesheetBundle/Repository/TimesheetRepository.php index cf5fd1d4..5435c34a 100644 --- a/src/TimesheetBundle/Repository/TimesheetRepository.php +++ b/src/TimesheetBundle/Repository/TimesheetRepository.php @@ -22,7 +22,7 @@ use Pagerfanta\Pagerfanta; use TimesheetBundle\Model\Statistic\Month; use TimesheetBundle\Model\Statistic\Year; use TimesheetBundle\Model\TimesheetGlobalStatistic; -use TimesheetBundle\Model\Query\Timesheet as TimesheetQuery; +use TimesheetBundle\Model\Query\TimesheetQuery; use TimesheetBundle\Model\TimesheetStatistic; use DateTime;