src/Entity/LearningCourses/LearningCourseLesson.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity\LearningCourses;
  3. use App\Annotation\SiteAware;
  4. use App\Entity\AbstractBase;
  5. use App\Entity\Interfaces\SiteInterface;
  6. use App\Entity\Traits\ActiveTrait;
  7. use App\Entity\Traits\LearningCourseTrait;
  8. use App\Entity\Traits\NameTrait;
  9. use App\Entity\Traits\SiteTrait;
  10. use App\Repository\LearningCourses\LearningCourseLessonRepository;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. /**
  14.  * @ORM\Table(name="vulco_learning_course_lesson", indexes={@ORM\Index(name="learning_course_lesson_site_idx", columns={"site"})})
  15.  * @ORM\Entity(repositoryClass=LearningCourseLessonRepository::class)
  16.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  17.  * @SiteAware(siteFieldName="site")
  18.  */
  19. class LearningCourseLesson extends AbstractBase implements SiteInterface
  20. {
  21.     use ActiveTrait;
  22.     use LearningCourseTrait;
  23.     use NameTrait;
  24.     use SiteTrait;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=false)
  27.      */
  28.     private string $name;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="LearningCourse")
  31.      */
  32.     private LearningCourse $course;
  33.     /**
  34.      * @ORM\Column(type="boolean", nullable=false, options={"default": 1})
  35.      */
  36.     private bool $active true;
  37. }