Add getters for abstract entity properties tableName and columnsMapping
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 29 Sep 2014 22:38:17 +0000 (22:38 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 29 Sep 2014 22:38:17 +0000 (22:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@86445 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Domain/Model/AbstractEntity.php

index dbb5787..ee6ce2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-29  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Add getters for abstract entity properties tableName and columnsMapping
+
 2014-09-22  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #59586: Add Subterritory "419 Latin America and the Caribbean"
index 9d3d4f1..54af130 100644 (file)
@@ -36,14 +36,14 @@ class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
         *
         * @var string
         */
-       protected $tableName;
+       protected $tableName = '';
 
        /**
         * Contains the persistence columns mapping of this model
         *
         * @var array
         */
-       protected $columnsMapping;
+       protected $columnsMapping = array();
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
@@ -93,4 +93,22 @@ class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
                }
                return $this->nameLocalized;
        }
+
+       /**
+        * Gets the table name
+        *
+        * @return string
+        */
+       public function getTableName() {
+               return $this->tableName;
+       }
+
+       /**
+        * Gets the columns mapping
+        *
+        * @return string
+        */
+       public function getColumnsMapping() {
+               return $this->columnsMapping;
+       }
 }
\ No newline at end of file