[TYPO3-mvc] Domain model records without pid-column
Dennis Ahrens
dennis.ahrens at googlemail.com
Wed May 19 18:46:13 CEST 2010
Hi again,
I've had a deeper look into how extbase handles other fields from tca
and how the mapping is done for them in the persistence backend.
You can find a small patch
http://prserv2.rz.fh-hannover.de/dahrens/extbase_r2279_models_without_pid.diff
which changes the behaviour in the following way:
Each table has to define
$TCA['fooTable']['ctrl']['pid'] = 'pid-column-name';
If the pid-column should be respected.
If this field isn't set the pid is not handled by extbase when inserting
a new row.
Pro:
- the TCA configuration behaves like the others around (tstamp,
crdate, etc.)
Con:
- breaking change, because each model using the pid has to define it
in TCA's ctrl-section
Any opinions?
regards
Dennis
More information about the TYPO3-project-typo3v4mvc
mailing list