Esempio n. 1
0
 /**
  * Store the participating users to the database
  *
  * @param $project
  * @return string
  */
 protected function storeReceivers($project)
 {
     foreach ($this->getReceivers() as $receiver) {
         $user = $this->getUser($receiver, User::IS_NOT_HOST);
         $this->projectRepository->attachUser($project->id, $user->id, User::IS_NOT_HOST);
     }
     return 'ok';
 }