[TYPO3-mvc] Ignore hidden flag in reference

Philipp philippwrann at gmx.at
Wed Oct 30 11:03:08 CET 2013


Hi,

How can i set a property via doccomment or typoscript to be loaded whether it is hidden or not...

My problem:
i have a event record and it can hold multiple occasion records. Now - when adding a new occasion i hook into the saving of the record to create conrete occasions for that abstract occasion. I request the new abstract occasion from the repository. At some point a need the link to the parent record, but when accessing it i get null because the record is new and not enabled yet.

So what i need is something like:
/**
* @var \Some\Model
* @ignoreEnableFields
*/
protected $parent;

OR a typoscript setting like:
persistence.classes.Tx_MyExt_Domain_Model_Foo.mapping.columns.parent.ignoreEnableFields = 1

Something like that present or do i have to create a second property called parentUid, map it via TS to the parent and then load it via a separat Repository-Method?


More information about the TYPO3-project-typo3v4mvc mailing list