Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/AreasWeCover.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\SortOrderTrait;
  7. use App\Entity\Traits\TranslateTrait;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use App\Entity\Interfaces\DefaultEntity;
  10. use App\Repository\AreasWeCoverRepository;
  11. use App\Entity\Traits\TitleAndContentTrait;
  12. use Gedmo\Timestampable\Traits\TimestampableEntity;
  13. /**
  14.  * @Gedmo\Loggable
  15.  */
  16. #[ORM\Entity(repositoryClassAreasWeCoverRepository::class)]
  17. #[ORM\HasLifecycleCallbacks]
  18. #[ORM\Table(name'areas_we_cover')]
  19. class AreasWeCover implements DefaultEntity
  20. {
  21.     use TitleAndContentTrait;
  22.     use ActiveTrait;
  23.     use DeleteTrait;
  24.     use TimestampableEntity;
  25.     use TranslateTrait;
  26.     use SortOrderTrait;
  27.     #[ORM\Column(name'id'type'integer')]
  28.     #[ORM\Id]
  29.     #[ORM\GeneratedValue(strategy'AUTO')]
  30.     private readonly int $id;
  31.     #[ORM\OneToOne(targetEntityPage::class, inversedBy'areasWeCover')]
  32.     #[ORM\JoinColumn(name'page_id'referencedColumnName'id'nullabletrue)]
  33.     private ?Page $page null;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getPage(): ?Page
  39.     {
  40.         return $this->page;
  41.     }
  42.     public function setPage(?Page $page): self
  43.     {
  44.         $this->page $page;
  45.         return $this;
  46.     }
  47. }