[TYPO3-core] RFC: Bug 5074: IRRE - Hook processDatamap_afterDatabaseOperations executed early

Michael Stucki michael at typo3.org
Thu Mar 29 23:04:06 CEST 2007


Hi Oliver,

> Problem:
> In context of IRRE it might happen, that records refer to new parent or
> child records that haven't been written to database yet (and don't have
> a proper UID). The hook processDatamap_afterDatabaseOperations is
> normally called after a record had been written - but as mentioned above
> in IRRE context this might lead to some confusion and missing data.
> 
> Solution:
> There is already a remapStack which takes care of adjusting IRRE
> relations after all records (grand parent, parents and children) have
> been stored to database. This concept could also be used for the
> mentioned hook call. If there are semi-finished records, the record is
> pushed to a stack and the hook will be executed later. Regular records
> stay untouched from this remapping.

I do not like the fact that a hook is split over two places, but also I
don't have a better solution at hand. At least, I would like to see this
moved into a separate function.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list