[!!!][TASK] Remove some deprecated parts in Extbase Persistence 03/35403/4
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 13 Dec 2014 23:30:35 +0000 (00:30 +0100)
committerBenjamin Mack <benni@typo3.org>
Fri, 8 May 2015 05:10:47 +0000 (07:10 +0200)
Change-Id: I22d1b9868ffd65785edd10ca0b75479e1774c046
Resolves: #63835
Releases: master
Reviewed-on: http://review.typo3.org/35403
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-63835-RemoveDeprecatedExtbasePersistenceParts.rst [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Classes/Persistence/Repository.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-63835-RemoveDeprecatedExtbasePersistenceParts.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-63835-RemoveDeprecatedExtbasePersistenceParts.rst
new file mode 100644 (file)
index 0000000..ea81b30
--- /dev/null
@@ -0,0 +1,16 @@
+=======================================================================
+Breaking: #63835 - Remove Deprecated Parts in Extbase Persistence Layer
+=======================================================================
+
+Description
+===========
+
+The previously deprecated functions ``TYPO3\CMS\Extbase\Persistence\Generic\Backend->setDeletedObjects()`` and
+``TYPO3\CMS\Extbase\Persistence\Repository->replace()`` inside the Persistence Layer of Extbase have been removed.
+The protected property "session" inside ``TYPO3\CMS\Extbase\Persistence\Repository`` has been removed as well.
+
+
+Impact
+======
+
+Any direct calls to the methods will now exit with a PHP Fatal Error.
index 5eaa184..37e9799 100644 (file)
@@ -287,17 +287,6 @@ class Backend implements \TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface
        }
 
        /**
-        * Sets the deleted objects
-        *
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $objects
-        * @return void
-        * @deprecated since 6.1, will be removed two versions later
-        */
-       public function setDeletedObjects(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $objects) {
-               $this->setDeletedEntities($objects);
-       }
-
-       /**
         * Traverse and persist all aggregate roots and their object graph.
         *
         * @return void
index 5ff4956..1561c2f 100644 (file)
@@ -24,13 +24,6 @@ use TYPO3\CMS\Core\Utility\ClassNamingUtility;
 class Repository implements RepositoryInterface, \TYPO3\CMS\Core\SingletonInterface {
 
        /**
-        * @var \TYPO3\CMS\Extbase\Persistence\Generic\Session
-        * @deprecated since 6.1 will be removed two versions later, use the persistence manager instead
-        * @inject
-        */
-       protected $session;
-
-       /**
         * @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
         * @inject
         */
@@ -97,17 +90,6 @@ class Repository implements RepositoryInterface, \TYPO3\CMS\Core\SingletonInterf
        }
 
        /**
-        * Replaces an object by another.
-        *
-        * @param object $existingObject The existing object
-        * @param object $newObject The new object
-        * @deprecated since 6.1, will be removed two versions later
-        */
-       public function replace($existingObject, $newObject) {
-               // Does nothing here as explicit update replaces objects in persistence session already
-       }
-
-       /**
         * Replaces an existing object with the same identifier by the given object
         *
         * @param object $modifiedObject The modified object