improved form handling

improved profile editing
added activity editing
This commit is contained in:
Kevin Papst
2016-11-12 23:22:47 +01:00
parent 8401797728
commit cc269d3142
17 changed files with 425 additions and 34 deletions

View File

@@ -12,6 +12,7 @@
namespace TimesheetBundle\Repository;
use AppBundle\Entity\User;
use TimesheetBundle\Entity\Activity;
use TimesheetBundle\Entity\Timesheet;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;
@@ -27,6 +28,15 @@ use TimesheetBundle\Model\ActivityStatistic;
class ActivityRepository extends EntityRepository
{
/**
* @param $id
* @return null|Activity
*/
public function getById($id)
{
return $this->find($id);
}
/**
* Return statistic data for all user.
*