Fluid – Exception bei prependOptionLabel & prependOptionValue

FLUID

<f:form.select property="Option" options="{Option}" optionValueField="uid" optionLabelField="title" prependOptionValue=""  prependOptionLabel="Bitte wählen"/>

Exception:

Exception while property mapping at property path „“: PHP Catchable Fatal Error: Argument 1 passed to …

Lösung: $option = null

/**
 * Sets the option
 *
 * @param \VendorName\ExtensionName\Domain\Model\Option $option
 * @return void
 */
public function setOption(\VendorName\ExtensionName\Domain\Model\Option $option = null)
{
    $this->option = $option;
}