duplicate projects with all settings (#1465)

This commit is contained in:
Kevin Papst
2020-02-13 16:47:20 +01:00
committed by GitHub
parent 057c824e9f
commit c67617262f
34 changed files with 383 additions and 180 deletions

View File

@@ -10,6 +10,7 @@
namespace App\Repository;
use App\Entity\Activity;
use App\Entity\Project;
use App\Entity\Timesheet;
use App\Entity\User;
use App\Model\ActivityStatistic;
@@ -46,6 +47,15 @@ class ActivityRepository extends EntityRepository
return $activity;
}
/**
* @param Project $project
* @return Activity[]
*/
public function findByProject(Project $project)
{
return $this->findBy(['project' => $project]);
}
/**
* @param Activity $activity
* @throws ORMException