---
title: "Gibt es in ExtBase keine Möglichkeit die Exception abzufangen? Exception while property mapping at property path \"\":Object with identity \"56\" not found"
url: "https://www.typo3.net/d/121531-gibt-es-in-extbase-keine-moeglichkeit-die-exception-abzufangen-exception-while-property-mapping-at-property-path-object-with-identity-56-not-found"
source: "typo3.net"
tags: ["Extensions","Extbase","Frage"]
created: "2015-12-23"
last_reply: "2016-01-03"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Gibt es in ExtBase keine Möglichkeit die Exception abzufangen? Exception while property mapping at property path "":Object with identity "56" not found

Extensions › Extbase · 1 Antwort · gestartet 2015-12-23

## Eröffnungsbeitrag

**olek0707** · 2015-12-23 · [Beitrag #1](https://www.typo3.net/d/121531-gibt-es-in-extbase-keine-moeglichkeit-die-exception-abzufangen-exception-while-property-mapping-at-property-path-object-with-identity-56-not-found/1)

Hallo zusammen,

ich bin am Verzweifeln. Gibt es in ExtBase wirklich keine Möglichkeit die Exception abzufangen?
#1297759968: Exception while property mapping at property path "":Object with identity "222222" not found.

Ich habe ein ganz einfaches Beispiel, in dem ich die showAction aufrufe:

/index.php?id=13&tx_gbuserregistration_main[user]=2&tx_gbuserregistration_main[action]=show&tx_gbuserregistration_main[controller]=User

Wenn ich die UID auf eine nicht existierende ändere

&tx_gbuserregistration_main[user]=222222

bekomme ich die o.g Exception. Eigentlich möchte ich an der Stelle eine Fehlermeldung anzeigen, dass das aufgerufene Object nicht existiert. Ist sowas in Extbase möglich?

Haben Core-Entwickler keine Gedanken darüber gemacht??? Wenn ich nach "Exception while property mapping at property path Object with identity not found." google, wird eine Unmenge an Websites gefunden, wo das Problem vorkommt. Allerdings gibt es keine Lösung.

## Antworten

### [#2](https://www.typo3.net/d/121531-gibt-es-in-extbase-keine-moeglichkeit-die-exception-abzufangen-exception-while-property-mapping-at-property-path-object-with-identity-56-not-found/2) · froemken · 2016-01-03

Hallo,

Du schreibst, dass Du Dich in einer showAction befindest. Ich vermute sehr, dass diese so aussieht:

public function showAction(MeinModel $model) ...

Dadurch startest Du mit jedem Aufruf der Detailansicht die Validierung. Macht wenig Sinn, da wir davon ausgehen können, dass Du in Deiner Datenbank eh nur valide Datensätze rumfliegen hast. Gerade wenn Du mit Kategorien arbeitest kann eine leichte Änderung hier enorm an Performance rausholen:

/*
 * @param int $model
 */
public function showAction($model)
{
  $model = $this->modelRepository->findByIdentifier($model);
}

Und ab jetzt kannst Du selbst entscheiden, ob Du da ein catch drum baust, oder überprüfst, ob $model === null ist.

Stefan

---

Quelle: „Gibt es in ExtBase keine Möglichkeit die Exception abzufangen? Exception while property mapping at property path "":Object with identity "56" not found“, typo3.net, https://www.typo3.net/d/121531-gibt-es-in-extbase-keine-moeglichkeit-die-exception-abzufangen-exception-while-property-mapping-at-property-path-object-with-identity-56-not-found
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
