for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\PluginBundle\Entity\CourseHomeNotify;
use Chamilo\CoreBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'course_home_notify_notification_rel_user')]
#[ORM\Entity]
class NotificationRelUser
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue]
private ?int $id = 0;
#[ORM\ManyToOne(targetEntity: Notification::class)]
#[ORM\JoinColumn(name: 'notification_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
private Notification $notification;
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
private User $user;
public function getId(): ?int
return $this->id;
}
public function getNotification(): Notification
return $this->notification;
public function setNotification(Notification $notification): static
$this->notification = $notification;
return $this;
public function getUser(): User
return $this->user;
public function setUser(User $user): static
$this->user = $user;