[TYPO3-mvc] Domain model records without pid-column
dennis ahrens
dennis.ahrens at googlemail.com
Tue May 18 17:20:58 CEST 2010
Hi,
> Can we somehow see in TCA if a table has a PID column or not? I guess
> yes -- that's why I'd say: In case a table has no PID column, we just
> make it work.
The ctrl-section in TCA contains nothing to tell about the table's pid
field. Maybe i've oversight it. Have had a look at this:
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2517078
I've suggested to add something like
$TCA['mytable']['ctrl']['hasNoPid'] = TRUE;
I've chosen a negated parameter name, because of the default behaviour
that most TYPO3 code expects a record's pid field called pid :)
Another possibility would be to create a
$TCA['mytable']['columns']['pid'] configuration - maybe:
$TCA['mytable']['columns']['pid'] = FALSE;
But i don't know how this would influence with the core.
regards
dennis
More information about the TYPO3-project-typo3v4mvc
mailing list