From b1c995a31615ae656a5aa369c9f64c4d560b031c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 14 Feb 2022 11:51:09 +0100 Subject: [PATCH] update visibility of entities properties --- core/Entity/NavigationSetting.php | 12 ++++++------ core/Entity/Setting.php | 10 +++++----- core/Entity/Site/Navigation.php | 4 ++-- core/Entity/Site/Node.php | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/Entity/NavigationSetting.php b/core/Entity/NavigationSetting.php index cee3540..21d37d7 100644 --- a/core/Entity/NavigationSetting.php +++ b/core/Entity/NavigationSetting.php @@ -16,33 +16,33 @@ class NavigationSetting implements EntityInterface * @ORM\GeneratedValue * @ORM\Column(type="integer") */ - private $id; + protected $id; /** * @ORM\Column(type="string", length=255) */ - private $section; + protected $section; /** * @ORM\Column(type="string", length=255) */ - private $label; + protected $label; /** * @ORM\Column(type="string", length=255) */ - private $code; + protected $code; /** * @ORM\Column(type="text", nullable=true) */ - private $value; + protected $value; /** * @ORM\ManyToOne(targetEntity=Navigation::class, inversedBy="navigationSettings") * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ - private $navigation; + protected $navigation; public function getId(): ?int { diff --git a/core/Entity/Setting.php b/core/Entity/Setting.php index 92f9cd3..2e3a9a0 100644 --- a/core/Entity/Setting.php +++ b/core/Entity/Setting.php @@ -15,27 +15,27 @@ class Setting implements EntityInterface * @ORM\GeneratedValue * @ORM\Column(type="integer") */ - private $id; + protected $id; /** * @ORM\Column(type="string", length=255) */ - private $section; + protected $section; /** * @ORM\Column(type="string", length=255) */ - private $label; + protected $label; /** * @ORM\Column(type="string", length=255) */ - private $code; + protected $code; /** * @ORM\Column(type="text", nullable=true) */ - private $value; + protected $value; public function getId(): ?int { diff --git a/core/Entity/Site/Navigation.php b/core/Entity/Site/Navigation.php index 22f5a88..084f357 100644 --- a/core/Entity/Site/Navigation.php +++ b/core/Entity/Site/Navigation.php @@ -63,12 +63,12 @@ class Navigation implements EntityInterface /** * @ORM\Column(type="integer", nullable=true) */ - private $sortOrder; + protected $sortOrder; /** * @ORM\OneToMany(targetEntity=NavigationSetting::class, mappedBy="navigation", orphanRemoval=true) */ - private $navigationSettings; + protected $navigationSettings; public function __construct() { diff --git a/core/Entity/Site/Node.php b/core/Entity/Site/Node.php index 6e530ef..ab7d6ef 100644 --- a/core/Entity/Site/Node.php +++ b/core/Entity/Site/Node.php @@ -137,7 +137,7 @@ class Node implements EntityInterface /** * @ORM\Column(type="string", length=255, nullable=true) */ - private $contentType; + protected $contentType; public function __construct() {