Internal: Remove Course::teacher computed property

pull/4744/head
Angel Fernando Quiroz Campos 1 year ago
parent 7d1b582cff
commit 46c36c1061
  1. 12
      src/CoreBundle/Entity/Course.php

@ -130,17 +130,6 @@ class Course extends AbstractResource implements
#[ORM\OneToMany(mappedBy: 'course', targetEntity: CourseRelUser::class, cascade: ['persist'], orphanRemoval: true)]
protected Collection $users;
/**
* @var Collection<int, CourseRelUser>
*
* "orphanRemoval" is needed to delete the CourseRelUser relation
* in the CourseAdmin class. The setUsers, getUsers, removeUsers and
* addUsers methods need to be added.
*/
#[Groups(['course:read', 'user:read'])]
#[ORM\OneToMany(mappedBy: 'course', targetEntity: CourseRelUser::class, cascade: ['persist'])]
protected Collection $teachers;
/**
* @var Collection<int, EntityAccessUrlInterface>
*/
@ -555,6 +544,7 @@ class Course extends AbstractResource implements
/**
* @return Collection<int, CourseRelUser>
*/
#[Groups(['course:read', 'user:read'])]
public function getTeachers(): Collection
{
$criteria = Criteria::create();

Loading…
Cancel
Save