[TYPO3-english] Typo3 cms 7.1 - makeInstance of persistenceManager

Vikram Mandal vikram at fivee.in
Sat Feb 28 05:40:15 CET 2015


Hi Jan,

I tried this too. It did not work.

May be I would not need persistence any more as certain things which 
were not working in 7.0 have started to work in 7.1

Thanks anyway.
- Vikram


On 02/27/2015 06:58 PM, Jan Bednarik wrote:
> Hi Vikram,
>
> /**
>   * @deprecated since 6.0 will be removed in 7.0
>   */
> class Tx_Extbase_Persistence_Manager extends
> \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager {}
>
> I think the best way would be to inject:
>
> /**
> * persistenceManager
> *
> * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager
> * @inject
> */
> protected $persistenceManager;
>
>
> Jan
>
> Dne 27. 2. 2015 v 11:42 Vikram Mandal napsal(a):
>> Hi,
>>
>> For some reason i need a instance of persistenceManager.. i have no
>> choice.
>>
>> Now I am not able to get an instance of Tx_Extbase_Persistence_Manager
>> in Typo3 7.1
>>
>> ---------------
>> $persistenceManager =
>> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Extbase_Persistence_Manager');
>>
>>
>>
>> Fatal error: Class 'Tx_Extbase_Persistence_Manager' not found
>>
>> ----other many more trials failed too --------
>> $persistenceManager =
>> $this->objectManager->get('Tx_Extbase_Persistence_Manager');
>>
>> $persistenceManager =
>> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\PersistenceManager');
>>
>>
>>
>> $persistenceManager =
>> $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class);
>>
>>
>>
>> ---------
>> I even tried with injecting the PersistenceManager but still highly
>> unsuccessful!!
>>
>> Would be thankful if any one could give me some pointer/ideas.
>>
>


-- 
regards
Vikram Mandal
--
FiveE Technologies.
http://FiveEtechnologies.com



More information about the TYPO3-english mailing list