Преглед на файлове

[mapping] for the reasons of overriding or using properties for extended methods, closes #210

gedi преди 13 години
родител
ревизия
655916f346

+ 4 - 4
lib/Gedmo/Loggable/Document/AbstractLogEntry.php

@@ -22,14 +22,14 @@ abstract class AbstractLogEntry
      *
      * @Id
      */
-    private $id;
+    protected $id;
 
     /**
      * @var string $action
      *
      * @String
      */
-    private $action;
+    protected $action;
 
     /**
      * @var datetime $loggedAt
@@ -37,7 +37,7 @@ abstract class AbstractLogEntry
      * @Index
      * @Date
      */
-    private $loggedAt;
+    protected $loggedAt;
 
     /**
      * @var string $objectId
@@ -59,7 +59,7 @@ abstract class AbstractLogEntry
      *
      * @Int
      */
-    private $version;
+    protected $version;
 
     /**
      * @var text $data

+ 4 - 4
lib/Gedmo/Loggable/Entity/AbstractLogEntry.php

@@ -21,21 +21,21 @@ abstract class AbstractLogEntry
      * @Id
      * @GeneratedValue
      */
-    private $id;
+    protected $id;
 
     /**
      * @var string $action
      *
      * @Column(type="string", length=8)
      */
-    private $action;
+    protected $action;
 
     /**
      * @var string $loggedAt
      *
      * @Column(name="logged_at", type="datetime")
      */
-    private $loggedAt;
+    protected $loggedAt;
 
     /**
      * @var string $objectId
@@ -56,7 +56,7 @@ abstract class AbstractLogEntry
      *
      * @Column(type="integer")
      */
-    private $version;
+    protected $version;
 
     /**
      * @var text $data

+ 6 - 6
lib/Gedmo/Translatable/Entity/AbstractTranslation.php

@@ -21,42 +21,42 @@ abstract class AbstractTranslation
      * @Id
      * @GeneratedValue
      */
-    private $id;
+    protected $id;
 
     /**
      * @var string $locale
      *
      * @Column(type="string", length=8)
      */
-    private $locale;
+    protected $locale;
 
     /**
      * @var string $objectClass
      *
      * @Column(name="object_class", type="string", length=255)
      */
-    private $objectClass;
+    protected $objectClass;
 
     /**
      * @var string $field
      *
      * @Column(type="string", length=32)
      */
-    private $field;
+    protected $field;
 
     /**
      * @var string $foreignKey
      *
      * @Column(name="foreign_key", type="string", length=64)
      */
-    private $foreignKey;
+    protected $foreignKey;
 
     /**
      * @var text $content
      *
      * @Column(type="text", nullable=true)
      */
-    private $content;
+    protected $content;
 
     /**
      * Get id