---
title: "The identity property \"synony\" is no UID."
url: "https://www.typo3.net/d/125847-the-identity-property-synony-is-no-uid"
source: "typo3.net"
tags: ["Extensions","Extbase","Fluid","Frage"]
created: "2017-03-25"
last_reply: "2017-05-17"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# The identity property "synony" is no UID.

Extensions › Extbase · 1 Antwort · gestartet 2017-03-25

## Eröffnungsbeitrag

**getit** · 2017-03-25 · [Beitrag #1](https://www.typo3.net/d/125847-the-identity-property-synony-is-no-uid/1)

Hallo,

habe folgendes Szenario:
Tabellen:

Leistung              <--(1-n)-->           Leistunganhang

Mein Model

```php
class Leistunganhang extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
  /**
   * typ
   * 
   * @var string
   */
   protected $typ = '';

  /**
   * kurzbeschreibung
   * 
   * @var string
   */
   protected $kurzbeschreibung = '';

   /**
    * langbeschreibung
    * 
    * @var string
    */
   protected $langbeschreibung = '';


   /**
    * Returns the typ
    * 
    * @return string $typ
    */
   public function getTyp()
   {
     return $this->typ;
   }

   /**
    * Sets the typ
    * 
    * @param string $typ
    * @return void
    */
   public function setTyp($typ)
   {
     $this->typ = $typ;
   }

   /**
    * Returns the kurzbeschreibung
    * 
    * @return string $kurzbeschreibung
    */
   public function getKurzbeschreibung()
   {
     return $this->kurzbeschreibung;
   }

   /**
    * Sets the kurzbeschreibung
    * 
    * @param string $kurzbeschreibung
    * @return void
    */
   public function setKurzbeschreibung($kurzbeschreibung)
   {
     $this->kurzbeschreibung = $kurzbeschreibung;
   }

   /**
    * Returns the langbeschreibung
    * 
    * @return string $langbeschreibung
    */
   public function getLangbeschreibung()
   {
     return $this->langbeschreibung;
   }

   /**
    * Sets the langbeschreibung
    * 
    * @param string $langbeschreibung
    * @return void
    */
   public function setLangbeschreibung($langbeschreibung)
   {
     $this->langbeschreibung = $langbeschreibung;
   }
}
```

Habe jetzt zum Testen folgendes Forumlar

```html
<f:form action="add" object="{leistung}" name="leistung" additionalAttributes="{role:'form'}">
  <f:form.hidden property="leistunganhang.typ" value="synonym"/>
  <div class="form-group">
    <label>Kurzbeschreibung</label>
    <f:form.textfield property="leistunganhang.kurzbeschreibung" class="form-control"/>
  </div>
  <div class="actions">
    <f:form.submit value="Anlegen" class="btn btn-primary"/>
  </div>
</f:form>
```

Schicke ich das Formular ab, erhalte ich im initlizeAddAction() beim Debug von $this->request folgendes (gekürzte) Ausgabe:

```php
TYPO3\CMS\Extbase\Mvc\Web\Requestprototypeobject
  ...
  arguments => protectedarray(3 items)
    leistung => array(2 items)
      ...
      typ => 'synonym' (6 chars)
      kurzbeschreibung => 'blablub' (7 chars)
```

und in der addAction() dann folgende Fehlermeldung:
#1297759968: Exception while property mapping at property path "leistunganhang.typ": The identity property "synony" is no UID.

Kann mir jemand sagen, wo da der Fehler liegt?

## Antworten

### [#2](https://www.typo3.net/d/125847-the-identity-property-synony-is-no-uid/2) · aemka · 2017-05-17

<http://stackoverflow.com/questions/33996431/add-create-element-to-objectstorage-using-javascript-in-extbase-fluid-typo3>

<http://stackoverflow.com/questions/32005501/create-an-and-validate-parent-child-objects-with-typo3-extbase-fluid>

<http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-January/002618.html>

---

Quelle: „The identity property "synony" is no UID.“, typo3.net, https://www.typo3.net/d/125847-the-identity-property-synony-is-no-uid
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
