[TYPO3-mvc] Define a PID per object, not by configuration

Marc Bastian Heinrichs typo3 at mbh-web.de
Tue Aug 9 09:11:57 CEST 2011


Hey,

> Of course I tried things like:
> $newNewsletter->setPid(12345);
>  $this->newsletterRepository->add($newNewsletter);
> 
> But, as many before me, it wasn't long before I figured out that the PID is
> always overwritten by the configuration
> (via Tx_Extbase_Persistence_Backend::determineStoragePageIdForNewRecord()).
> 
> 
> So the first question is simple: Why can't we manually set a PID without
> being overwritten ?

This feature was added some days ago in current dev-version and will be
released with T3 4.6. Here is the commit
http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git?a=commit;h=6edb4c885bac63bff8accfcae5ea2ae496201ed8

I think it's already in 4.6-beta1.

Best
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list