title: Get UID of object after adding to the repository
body: <p>So i'm trying to set up my first extension with Typo3 and i'm struggling very much. I want to set up an extension which handles reclamations from customers.</p>
  
  <p>After submitting the input values i'll store the new customer in the database and directly after this step i'll get it back from the database to see which uid he has, to store the uid from the customer in the reclamation.</p>
  
  <p>So i wan't to override the current <code>$customer-variable</code> with </p>
  
  <pre><code>$customer = $this-&gt;customerRepository-&gt;findByName($name);
  </code></pre>
  
  <p>The returned result is not really an object of customer even <code>var_dump</code> is saying it is an customer-object. I can't call the function </p>
  
  <pre><code>$customer-&gt;getUid()
  </code></pre>
  
  <p>to get the current uid of this new customer. But i need the uid of the customer in my reclamation-object - how do i do that?</p>
  
  <p>Next problem: every query i ll do to the db like </p>
  
  <pre><code>-&gt;findAll(), findByIdentifier($identifier)
  </code></pre>
  
  <p>is <strong>null</strong>.</p>
  
  <p>I don't know why. It seems that he can't find the storagePid, but i've set up my TypoScript correctly.</p>
  
  <p>I can only get a query when i add </p>
  
  <pre><code>$query-&gt;getQuerySettings()-&gt;setRespectStoragePage(FALSE);
  </code></pre>
  
  <p>any ideas where the dog is buried in this case?</p>
  
  <p>Thank you very much and sorry for my bad english :P</p>