# Bestellung speichern: Found entity of type ...Order\\Shipping

**URL:** <https://forum.shopware.com/t/bestellung-speichern-found-entity-of-type-order-shipping/14988>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [13. August 2013 um 23:06 UTC](https://forum.shopware.com/t/bestellung-speichern-found-entity-of-type-order-shipping/14988 "2013-08-13T23:06:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![justme11](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@justme11](https://forum.shopware.com/u/justme11)\
**Post date:** [13. August 2013 um 23:06 UTC](https://forum.shopware.com/t/bestellung-speichern-found-entity-of-type-order-shipping/14988/1 "2013-08-13T23:06:01Z")

</div>

Hallo zusammen, Als relativer Neuling in der Shopware-Community versuche ich mich gerade an einem Exporter für Shop-Bestellungen. Der Zugriff auf die Bestellungen funktioniert auch einwandfrei, allerdings erhalte ich beim Ändern des Bestellstatus folgende Fehlermeldung: [quote]Found entity of type Shopware\Models\Order\Shipping on association Shopware\Models\Customer\Customer#shipping, but expecting Shopware\Models\Customer\Shipping[/quote] Der zugehörige Code sieht so aus: [code] $orderResource = \Shopware\Components\Api\Manager::getResource(‚Order‘); $orderResource-\>setResultMode(Shopware\Components\Api\Resource\Resource::HYDRATE\_OBJECT); $tmpOrder = $orderResource-\>getOne($orderId); Shopware()-\>Models()-\>persist($tmpOrder); Shopware()-\>Models()-\>flush(); //
