src/Entity/CRM/BhpCourse.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\BhpCourseRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BhpCourseRepository::class)]class BhpCourse{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column]private ?bool $isActive = null;#[ORM\OneToMany(mappedBy: 'bhpCourse', targetEntity: BhpJournals::class)]private Collection $bhpJournals;public function __construct(){$this->bhpJournals = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): static{$this->name = $name;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}/*** @return Collection<int, BhpJournals>*/public function getBhpJournals(): Collection{return $this->bhpJournals;}public function addBhpJournal(BhpJournals $bhpJournal): static{if (!$this->bhpJournals->contains($bhpJournal)) {$this->bhpJournals->add($bhpJournal);$bhpJournal->setBhpCourse($this);}return $this;}public function removeBhpJournal(BhpJournals $bhpJournal): static{if ($this->bhpJournals->removeElement($bhpJournal)) {// set the owning side to null (unless already changed)if ($bhpJournal->getBhpCourse() === $this) {$bhpJournal->setBhpCourse(null);}}return $this;}}