Issue Bug Closed

#60913Cannot edit lazy loaded objects

Mathias Brodala 08/12/14, 14:01 updated 10/02/18, 11:52

Description

Lazy loaded objects cannot be edited through Fluid forms.

Given the following form:

<f:form name="bar" object="{foo.bar}">
  <f:form.textfield property="propertyOfBar"/>
  <f:form.submit value="Update"/>
</f:form>

If “bar” of “foo” is an instance of TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy the initial check in TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField fails because the LazyLoadingProxy instance cannot be an instance of TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject. This prevents the hidden identity field from being rendered which makes editing impossible.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.