Made entity properties protected instead of private
This commit is contained in:
parent
45b4e11fef
commit
cab47219b3
@ -18,7 +18,7 @@ class Article
|
|||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
*/
|
*/
|
||||||
private $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
@ -35,7 +35,7 @@ class Article
|
|||||||
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
||||||
* @ORM\JoinColumn(name="created_by_id")
|
* @ORM\JoinColumn(name="created_by_id")
|
||||||
*/
|
*/
|
||||||
private $createdBy;
|
protected $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdBy
|
* Set createdBy
|
||||||
@ -63,7 +63,7 @@ class Article
|
|||||||
* @var DateTime $createdAt
|
* @var DateTime $createdAt
|
||||||
* @ORM\Column(type="datetime", name="created_at", nullable=false)
|
* @ORM\Column(type="datetime", name="created_at", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $createdAt;
|
protected $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdAt
|
* Set createdAt
|
||||||
@ -91,7 +91,7 @@ class Article
|
|||||||
* @var string $title
|
* @var string $title
|
||||||
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
||||||
*/
|
*/
|
||||||
private $title;
|
protected $title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set title
|
* Set title
|
||||||
@ -119,7 +119,7 @@ class Article
|
|||||||
* @var string $slug
|
* @var string $slug
|
||||||
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
||||||
*/
|
*/
|
||||||
private $slug;
|
protected $slug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set slug
|
* Set slug
|
||||||
@ -147,7 +147,7 @@ class Article
|
|||||||
* @var string $text
|
* @var string $text
|
||||||
* @ORM\Column(type="text", nullable=false)
|
* @ORM\Column(type="text", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $text;
|
protected $text;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set text
|
* Set text
|
||||||
@ -175,7 +175,7 @@ class Article
|
|||||||
* @var boolean $mainPage
|
* @var boolean $mainPage
|
||||||
* @ORM\Column(type="boolean", name="main_page")
|
* @ORM\Column(type="boolean", name="main_page")
|
||||||
*/
|
*/
|
||||||
private $mainPage;
|
protected $mainPage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set mainPage
|
* Set mainPage
|
||||||
@ -203,7 +203,7 @@ class Article
|
|||||||
* @var boolean public
|
* @var boolean public
|
||||||
* @ORM\Column(type="boolean", nullable=false)
|
* @ORM\Column(type="boolean", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $public;
|
protected $public;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set public
|
* Set public
|
||||||
@ -231,7 +231,7 @@ class Article
|
|||||||
* @var string $source
|
* @var string $source
|
||||||
* @ORM\Column(type="string", nullable=true)
|
* @ORM\Column(type="string", nullable=true)
|
||||||
*/
|
*/
|
||||||
private $source;
|
protected $source;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set source
|
* Set source
|
||||||
|
@ -18,7 +18,7 @@ class ForumPost
|
|||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
*/
|
*/
|
||||||
private $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
@ -34,7 +34,7 @@ class ForumPost
|
|||||||
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
|
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
|
||||||
* @ORM\JoinColumn(name="created_by_id")
|
* @ORM\JoinColumn(name="created_by_id")
|
||||||
*/
|
*/
|
||||||
private $createdBy;
|
protected $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdBy
|
* Set createdBy
|
||||||
@ -62,7 +62,7 @@ class ForumPost
|
|||||||
* @var DateTime $createdAt
|
* @var DateTime $createdAt
|
||||||
* @ORM\Column(type="datetime", name="created_at")
|
* @ORM\Column(type="datetime", name="created_at")
|
||||||
*/
|
*/
|
||||||
private $createdAt;
|
protected $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdAt
|
* Set createdAt
|
||||||
@ -89,7 +89,7 @@ class ForumPost
|
|||||||
* @var string $text
|
* @var string $text
|
||||||
* @ORM\Column(type="text", nullable=false)
|
* @ORM\Column(type="text", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $text;
|
protected $text;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set text
|
* Set text
|
||||||
@ -117,7 +117,7 @@ class ForumPost
|
|||||||
* @var ForumTopic $topic
|
* @var ForumTopic $topic
|
||||||
* @ORM\ManyToOne(targetEntity="ForumTopic", inversedBy="posts")
|
* @ORM\ManyToOne(targetEntity="ForumTopic", inversedBy="posts")
|
||||||
*/
|
*/
|
||||||
private $topic;
|
protected $topic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set topic
|
* Set topic
|
||||||
|
@ -24,7 +24,7 @@ class ForumTopic
|
|||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
*/
|
*/
|
||||||
private $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
@ -41,7 +41,7 @@ class ForumTopic
|
|||||||
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
||||||
* @ORM\JoinColumn(name="created_by_id")
|
* @ORM\JoinColumn(name="created_by_id")
|
||||||
*/
|
*/
|
||||||
private $createdBy;
|
protected $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdBy
|
* Set createdBy
|
||||||
@ -70,7 +70,7 @@ class ForumTopic
|
|||||||
* @var DateTime $createdAt
|
* @var DateTime $createdAt
|
||||||
* @ORM\Column(type="datetime", nullable=false, name="created_at")
|
* @ORM\Column(type="datetime", nullable=false, name="created_at")
|
||||||
*/
|
*/
|
||||||
private $createdAt;
|
protected $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdAt
|
* Set createdAt
|
||||||
@ -99,7 +99,7 @@ class ForumTopic
|
|||||||
* @ORM\ManyToOne(targetEntity="ForumTopicGroup", inversedBy="topics")
|
* @ORM\ManyToOne(targetEntity="ForumTopicGroup", inversedBy="topics")
|
||||||
* @ORM\JoinColumn(name="topic_group_id")
|
* @ORM\JoinColumn(name="topic_group_id")
|
||||||
*/
|
*/
|
||||||
private $topicGroup;
|
protected $topicGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set topicGroup
|
* Set topicGroup
|
||||||
@ -127,7 +127,7 @@ class ForumTopic
|
|||||||
* @var string $slug
|
* @var string $slug
|
||||||
* @ORM\Column(type="string", length=100, nullable=false)
|
* @ORM\Column(type="string", length=100, nullable=false)
|
||||||
*/
|
*/
|
||||||
private $slug;
|
protected $slug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set slug
|
* Set slug
|
||||||
@ -155,7 +155,7 @@ class ForumTopic
|
|||||||
* @var string $title
|
* @var string $title
|
||||||
* @ORM\Column(type="string", length=100, nullable=false)
|
* @ORM\Column(type="string", length=100, nullable=false)
|
||||||
*/
|
*/
|
||||||
private $title;
|
protected $title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set title
|
* Set title
|
||||||
@ -184,7 +184,7 @@ class ForumTopic
|
|||||||
* @ORM\OneToOne(targetEntity="ForumPost", cascade={"persist"})
|
* @ORM\OneToOne(targetEntity="ForumPost", cascade={"persist"})
|
||||||
* @ORM\JoinColumn(name="last_post_id")
|
* @ORM\JoinColumn(name="last_post_id")
|
||||||
*/
|
*/
|
||||||
private $lastPost;
|
protected $lastPost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set lastPost
|
* Set lastPost
|
||||||
@ -211,7 +211,7 @@ class ForumTopic
|
|||||||
* @var ArrayCollection $topics;
|
* @var ArrayCollection $topics;
|
||||||
* @ORM\OneToMany(targetEntity="ForumPost", mappedBy="topic")
|
* @ORM\OneToMany(targetEntity="ForumPost", mappedBy="topic")
|
||||||
*/
|
*/
|
||||||
private $posts;
|
protected $posts;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add post
|
* Add post
|
||||||
|
@ -25,7 +25,7 @@ class ForumTopicGroup
|
|||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
*/
|
*/
|
||||||
private $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
@ -42,7 +42,7 @@ class ForumTopicGroup
|
|||||||
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
|
||||||
* @ORM\JoinColumn(name="created_by_id")
|
* @ORM\JoinColumn(name="created_by_id")
|
||||||
*/
|
*/
|
||||||
private $createdBy;
|
protected $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdBy
|
* Set createdBy
|
||||||
@ -70,7 +70,7 @@ class ForumTopicGroup
|
|||||||
* @var DateTime $createdAt
|
* @var DateTime $createdAt
|
||||||
* @ORM\Column(type="datetime", nullable=false)
|
* @ORM\Column(type="datetime", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $createdAt;
|
protected $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdAt
|
* Set createdAt
|
||||||
@ -98,7 +98,7 @@ class ForumTopicGroup
|
|||||||
* @var string $slug
|
* @var string $slug
|
||||||
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
||||||
*/
|
*/
|
||||||
private $slug;
|
protected $slug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set slug
|
* Set slug
|
||||||
@ -126,7 +126,7 @@ class ForumTopicGroup
|
|||||||
* @var string $title
|
* @var string $title
|
||||||
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
|
||||||
*/
|
*/
|
||||||
private $title;
|
protected $title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set title
|
* Set title
|
||||||
@ -154,7 +154,7 @@ class ForumTopicGroup
|
|||||||
* @var ArrayCollection $topics
|
* @var ArrayCollection $topics
|
||||||
* @ORM\OneToMany(targetEntity="ForumTopic", mappedBy="topicGroup")
|
* @ORM\OneToMany(targetEntity="ForumTopic", mappedBy="topicGroup")
|
||||||
*/
|
*/
|
||||||
private $topics;
|
protected $topics;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add topic
|
* Add topic
|
||||||
|
@ -16,7 +16,7 @@ class News
|
|||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
*/
|
*/
|
||||||
private $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
@ -32,7 +32,7 @@ class News
|
|||||||
* @var string $title
|
* @var string $title
|
||||||
* @ORM\Column(type="string", length=100)
|
* @ORM\Column(type="string", length=100)
|
||||||
*/
|
*/
|
||||||
private $title;
|
protected $title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set title
|
* Set title
|
||||||
@ -60,7 +60,7 @@ class News
|
|||||||
* @var string $text
|
* @var string $text
|
||||||
* @ORM\Column(type="text", nullable=false)
|
* @ORM\Column(type="text", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $text;
|
protected $text;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set text
|
* Set text
|
||||||
@ -88,7 +88,7 @@ class News
|
|||||||
* @var DateTime $createdAt
|
* @var DateTime $createdAt
|
||||||
* @ORM\Column(type="datetime", name="created_at", nullable=false)
|
* @ORM\Column(type="datetime", name="created_at", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $createdAt;
|
protected $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdAt
|
* Set createdAt
|
||||||
@ -117,7 +117,7 @@ class News
|
|||||||
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
|
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
|
||||||
* @ORM\JoinColumn(name="created_by_id")
|
* @ORM\JoinColumn(name="created_by_id")
|
||||||
*/
|
*/
|
||||||
private $createdBy;
|
protected $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set createdBy
|
* Set createdBy
|
||||||
|
Loading…
Reference in New Issue
Block a user