Minor - fix entities

pull/3924/head
Julio Montoya 3 years ago
parent f3e7c181b3
commit 3f94c86e06
  1. 4
      src/LtiBundle/Component/OutcomeDeleteRequest.php
  2. 4
      src/LtiBundle/Component/OutcomeReadRequest.php
  3. 4
      src/LtiBundle/Component/OutcomeReplaceRequest.php

@ -39,9 +39,9 @@ class OutcomeDeleteRequest extends OutcomeRequest
}
/** @var GradebookEvaluation $evaluation */
$evaluation = $this->entityManager->find('ChamiloCoreBundle:GradebookEvaluation', $sourcedParts['e']);
$evaluation = $this->entityManager->find(GradebookEvaluation::class, $sourcedParts['e']);
/** @var User $user */
$user = $this->entityManager->find('ChamiloCoreBundle:User', $sourcedParts['u']);
$user = $this->entityManager->find(User::class, $sourcedParts['u']);
if (empty($evaluation) || empty($user)) {
$this->statusInfo

@ -39,9 +39,9 @@ class OutcomeReadRequest extends OutcomeRequest
}
/** @var GradebookEvaluation $evaluation */
$evaluation = $this->entityManager->find('ChamiloCoreBundle:GradebookEvaluation', $sourcedParts['e']);
$evaluation = $this->entityManager->find(GradebookEvaluation::class, $sourcedParts['e']);
/** @var User $user */
$user = $this->entityManager->find('ChamiloCoreBundle:User', $sourcedParts['u']);
$user = $this->entityManager->find(User::class, $sourcedParts['u']);
if (empty($evaluation) || empty($user)) {
$this->statusInfo

@ -60,9 +60,9 @@ class OutcomeReplaceRequest extends OutcomeRequest
}
/** @var GradebookEvaluation $evaluation */
$evaluation = $this->entityManager->find('ChamiloCoreBundle:GradebookEvaluation', $sourcedParts['e']);
$evaluation = $this->entityManager->find(GradebookEvaluation::class, $sourcedParts['e']);
/** @var User $user */
$user = $this->entityManager->find('ChamiloCoreBundle:User', $sourcedParts['u']);
$user = $this->entityManager->find(User::class, $sourcedParts['u']);
if (empty($evaluation) || empty($user)) {
$this->statusInfo

Loading…
Cancel
Save