Issue Bug Closed

#60726__identity field will not be rendered if of type @lazy

Stefan Froemken 08/01/14, 14:50 updated 10/02/18, 11:52

Description

Hello Core-Team,

I have a field like that one in my fluid-template:

<f:form.textfield class="powermail_input" placeholder="ss:mm" id="timeBegin" property="eventTime.timeBegin" />

To prevend it from validation I have added the @lazy annotation in domain model. In renderHiddenIdentityField method you have something like:

if (!is_object($object)
    || !($object instanceof \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject)
    || ($object->_isNew() && !$object->_isClone())) {
    return '';
}

But \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy isn’t any type of them, so my required __identity field will not be rendered in template.

Stefan

Reviews 2