plugin/competency/Manager/ProgressManager.php
public function recomputeObjectiveProgress(Objective $objective)
    {
        $this->clearCache();
        $users = $this->objectiveRepo->findUsersWithObjective($objective);

        foreach ($users as $user) {
            $this->computeUserObjective($objective, $user);
            $this->computeUserProgress($user);
        }

        $this->om->flush();
    }
public function recomputeObjectiveProgress(Objective $objective)
    {
        $this->clearCache();
        $users = $this->objectiveRepo->findUsersWithObjective($objective);

        foreach ($users as $user) {
            $this->computeUserObjective($objective, $user);
            $this->computeUserProgress($user);
        }

        $this->om->flush();
    }
public function recomputeObjectiveProgress ( Objective $ objective ) { $ this -> clearCache ( ) ; $ users = $ this -> objectiveRepo -> findUsersWithObjective ( $ objective ) ; foreach ( $ users as $ user ) { $ this -> computeUserObjective ( $ objective , $ user ) ; $ this -> computeUserProgress ( $ user ) ; } $ this -> om -> flush ( ) ; }
Recomputes an objective progress for all the users and groups
of users to which that objective is assigned.

Note: this method doesn't compute competency progress.

@param Objective $objective
Recomputes an objective progress for all the users and groups of users to which that objective is assigned .