Made entity properties protected instead of private

This commit is contained in:
Polonkai Gergely 2012-07-17 18:47:20 +02:00
parent 45b4e11fef
commit cab47219b3
5 changed files with 33 additions and 33 deletions

View File

@ -18,7 +18,7 @@ class Article
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
protected $id;
/**
* Get id
@ -35,7 +35,7 @@ class Article
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
* @ORM\JoinColumn(name="created_by_id")
*/
private $createdBy;
protected $createdBy;
/**
* Set createdBy
@ -63,7 +63,7 @@ class Article
* @var DateTime $createdAt
* @ORM\Column(type="datetime", name="created_at", nullable=false)
*/
private $createdAt;
protected $createdAt;
/**
* Set createdAt
@ -91,7 +91,7 @@ class Article
* @var string $title
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
*/
private $title;
protected $title;
/**
* Set title
@ -119,7 +119,7 @@ class Article
* @var string $slug
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
*/
private $slug;
protected $slug;
/**
* Set slug
@ -147,7 +147,7 @@ class Article
* @var string $text
* @ORM\Column(type="text", nullable=false)
*/
private $text;
protected $text;
/**
* Set text
@ -175,7 +175,7 @@ class Article
* @var boolean $mainPage
* @ORM\Column(type="boolean", name="main_page")
*/
private $mainPage;
protected $mainPage;
/**
* Set mainPage
@ -203,7 +203,7 @@ class Article
* @var boolean public
* @ORM\Column(type="boolean", nullable=false)
*/
private $public;
protected $public;
/**
* Set public
@ -231,7 +231,7 @@ class Article
* @var string $source
* @ORM\Column(type="string", nullable=true)
*/
private $source;
protected $source;
/**
* Set source

View File

@ -18,7 +18,7 @@ class ForumPost
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
protected $id;
/**
* Get id
@ -34,7 +34,7 @@ class ForumPost
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
* @ORM\JoinColumn(name="created_by_id")
*/
private $createdBy;
protected $createdBy;
/**
* Set createdBy
@ -62,7 +62,7 @@ class ForumPost
* @var DateTime $createdAt
* @ORM\Column(type="datetime", name="created_at")
*/
private $createdAt;
protected $createdAt;
/**
* Set createdAt
@ -89,7 +89,7 @@ class ForumPost
* @var string $text
* @ORM\Column(type="text", nullable=false)
*/
private $text;
protected $text;
/**
* Set text
@ -117,7 +117,7 @@ class ForumPost
* @var ForumTopic $topic
* @ORM\ManyToOne(targetEntity="ForumTopic", inversedBy="posts")
*/
private $topic;
protected $topic;
/**
* Set topic

View File

@ -24,7 +24,7 @@ class ForumTopic
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
protected $id;
/**
* Get id
@ -41,7 +41,7 @@ class ForumTopic
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
* @ORM\JoinColumn(name="created_by_id")
*/
private $createdBy;
protected $createdBy;
/**
* Set createdBy
@ -70,7 +70,7 @@ class ForumTopic
* @var DateTime $createdAt
* @ORM\Column(type="datetime", nullable=false, name="created_at")
*/
private $createdAt;
protected $createdAt;
/**
* Set createdAt
@ -99,7 +99,7 @@ class ForumTopic
* @ORM\ManyToOne(targetEntity="ForumTopicGroup", inversedBy="topics")
* @ORM\JoinColumn(name="topic_group_id")
*/
private $topicGroup;
protected $topicGroup;
/**
* Set topicGroup
@ -127,7 +127,7 @@ class ForumTopic
* @var string $slug
* @ORM\Column(type="string", length=100, nullable=false)
*/
private $slug;
protected $slug;
/**
* Set slug
@ -155,7 +155,7 @@ class ForumTopic
* @var string $title
* @ORM\Column(type="string", length=100, nullable=false)
*/
private $title;
protected $title;
/**
* Set title
@ -184,7 +184,7 @@ class ForumTopic
* @ORM\OneToOne(targetEntity="ForumPost", cascade={"persist"})
* @ORM\JoinColumn(name="last_post_id")
*/
private $lastPost;
protected $lastPost;
/**
* Set lastPost
@ -211,7 +211,7 @@ class ForumTopic
* @var ArrayCollection $topics;
* @ORM\OneToMany(targetEntity="ForumPost", mappedBy="topic")
*/
private $posts;
protected $posts;
/**
* Add post

View File

@ -25,7 +25,7 @@ class ForumTopicGroup
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
protected $id;
/**
* Get id
@ -42,7 +42,7 @@ class ForumTopicGroup
* @ORM\ManyToOne(targetEntity="KekRozsak\SecurityBundle\Entity\User")
* @ORM\JoinColumn(name="created_by_id")
*/
private $createdBy;
protected $createdBy;
/**
* Set createdBy
@ -70,7 +70,7 @@ class ForumTopicGroup
* @var DateTime $createdAt
* @ORM\Column(type="datetime", nullable=false)
*/
private $createdAt;
protected $createdAt;
/**
* Set createdAt
@ -98,7 +98,7 @@ class ForumTopicGroup
* @var string $slug
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
*/
private $slug;
protected $slug;
/**
* Set slug
@ -126,7 +126,7 @@ class ForumTopicGroup
* @var string $title
* @ORM\Column(type="string", length=100, nullable=false, unique=true)
*/
private $title;
protected $title;
/**
* Set title
@ -154,7 +154,7 @@ class ForumTopicGroup
* @var ArrayCollection $topics
* @ORM\OneToMany(targetEntity="ForumTopic", mappedBy="topicGroup")
*/
private $topics;
protected $topics;
/**
* Add topic

View File

@ -16,7 +16,7 @@ class News
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
protected $id;
/**
* Get id
@ -32,7 +32,7 @@ class News
* @var string $title
* @ORM\Column(type="string", length=100)
*/
private $title;
protected $title;
/**
* Set title
@ -60,7 +60,7 @@ class News
* @var string $text
* @ORM\Column(type="text", nullable=false)
*/
private $text;
protected $text;
/**
* Set text
@ -88,7 +88,7 @@ class News
* @var DateTime $createdAt
* @ORM\Column(type="datetime", name="created_at", nullable=false)
*/
private $createdAt;
protected $createdAt;
/**
* Set createdAt
@ -117,7 +117,7 @@ class News
* @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User")
* @ORM\JoinColumn(name="created_by_id")
*/
private $createdBy;
protected $createdBy;
/**
* Set createdBy