title: Create an and validate Parent/Child Objects with Typo3 Extbase Fluid
body: <p>I want to create a Parent Object in a Fluid View Form with several Child Objects in a StorageObject (1:n Relation). The FormData will be transferred to the database and in case of an error the validator of the NEW Property Mapper returns it. But only in the form field of the parent object the "f3-form-error" class appears. But nothing happens on inconsistent child objects.</p>
  
  <p>(Working in Typo3 6.2.5)</p>
  
  <p>As you can see in a short example below, the Propertymapping for the ChildObjects Authors doesn't get the given UID. Instead the Mapper gives an custom ID. I think this is the reason why the ValidationResult isn't returned to input box.</p>
  
  <p>Please help!</p>
  
  <p>Short Example:</p>
  
  <p>//Controller</p>
  
  <pre><code>    public function initializeCreateAction() {
              $this-&gt;arguments-&gt;getArgument('newSubmission')-&gt;getPropertyMappingConfiguration()-&gt;allowProperties('authors');
              $this-&gt;arguments-&gt;getArgument('newSubmission')-&gt;getPropertyMappingConfiguration()-&gt;allowCreationForSubProperty('authors.*');
              $this-&gt;arguments-&gt;getArgument('newSubmission')-&gt;getPropertyMappingConfiguration()-&gt;forProperty('authors.*')-&gt;allowProperties('firstname');
  
          }
  </code></pre>
  
  <p>// Fluid</p>
  
  <pre><code>&lt;f:form.textfield property="type" /&gt;&lt;br /&gt;
      &lt;f:for each="{authors}" as="author" key="uid" iteration="iterator"&gt;
    &lt;f:form.textfield property="authors.{uid}.firstname" placeholder="Enter your first given name" /&gt;
  &lt;/f:for&gt;
  </code></pre>
  
  <p>// Debug</p>
  
  <pre><code>$result = $this-&gt;getControllerContext()-&gt;getRequest()-&gt;getOriginalRequestMappingResults();
  </code></pre>
  
  <p>//Output</p>
  
  <pre><code>array(19 items)
     newSubmission.type =&gt; array(1 item)
        0 =&gt; TYPO3\CMS\Extbase\Validation\Errorprototypeobject
           message =&gt; 'The given subject was NULL.' (27 chars)
           code =&gt; 1221560910 (integer)
           arguments =&gt; array(empty)
           title =&gt; '' (0 chars)
     newSubmission.authors.000000006200d7b200007f3972b36107.email =&gt; array(1 item)
        0 =&gt; TYPO3\CMS\Extbase\Validation\Errorprototypeobject
           message =&gt; 'The given subject was not a valid email address.' (48 chars)
           code =&gt; 1221559976 (integer)
           arguments =&gt; array(empty)
           title =&gt; '' (0 chars)
     newSubmission.authors.000000006200d7b400007f3972b36107.email =&gt; array(1 item)
        0 =&gt; TYPO3\CMS\Extbase\Validation\Errorprototypeobject
           message =&gt; 'The given subject was not a valid email address.' (48 chars)
           code =&gt; 1221559976 (integer)
           arguments =&gt; array(empty)
           title =&gt; '' (0 chars)
     newSubmission.authors.000000006200d7b700007f3972b36107.email =&gt; array(1 item)
        0 =&gt; TYPO3\CMS\Extbase\Validation\Errorprototypeobject
           message =&gt; 'The given subject was not a valid email address.' (48 chars)
           code =&gt; 1221559976 (integer)
           arguments =&gt; array(empty)
           title =&gt; '' (0 chars)
  </code></pre>