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

Adrien Crivelli adrien.crivelli at gmail.com
Tue Aug 9 18:33:06 CEST 2011


Oh this is great ! It is exactly what I need.

Unfortunately it's not released yet... Any recommendations on how to
reproduce this behavior with 4.5 ? Would it be possible to inherit
Tx_Extbase_Persistence_Backend and use our own instance of it ?

Thanks !


On 9 August 2011 00:11, Marc Bastian Heinrichs <typo3 at mbh-web.de> wrote:

> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list