src/Entity/FavouriteMenusSessions.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * FavouriteMenusSessions
  7.  *
  8.  * @ORM\Table(name="favourite_menus_sessions")
  9.  * @ORM\Entity(repositoryClass="App\Repository\FavouriteMenusSessionsRepository")
  10.  */
  11. class FavouriteMenusSessions
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned":true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="user_id", type="integer")
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\Users")
  26.      * @ORM\JoinColumn(onDelete="CASCADE")
  27.      */
  28.     private $userId;
  29.     /**
  30.      * @var \DateTime
  31.      *
  32.      * @ORM\Column(name="created_at", type="datetime")
  33.      */
  34.     private $createdAt;
  35.     /**
  36.      * Get id
  37.      *
  38.      * @return int
  39.      */
  40.     public function getId()
  41.     {
  42.         return $this->id;
  43.     }
  44.     /**
  45.      * Set userId
  46.      *
  47.      * @param integer $userId
  48.      *
  49.      * @return FavouriteMenusSessions
  50.      */
  51.     public function setUserId($userId)
  52.     {
  53.         $this->userId $userId;
  54.         return $this;
  55.     }
  56.     /**
  57.      * Get userId
  58.      *
  59.      * @return int
  60.      */
  61.     public function getUserId()
  62.     {
  63.         return $this->userId;
  64.     }
  65.     /**
  66.      * Set createdAt
  67.      *
  68.      * @param \DateTime $createdAt
  69.      *
  70.      * @return FavouriteMenusSessions
  71.      */
  72.     public function setCreatedAt($createdAt)
  73.     {
  74.         $this->createdAt $createdAt;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get createdAt
  79.      *
  80.      * @return \DateTime
  81.      */
  82.     public function getCreatedAt()
  83.     {
  84.         return $this->createdAt;
  85.     }
  86. }