# Ableitung von Shopware Entity im Core

**URL:** <https://forum.shopware.com/t/ableitung-von-shopware-entity-im-core/86234>\
**Category:** Programmierung\
**Created:** [18. März 2021 um 09:25 UTC](https://forum.shopware.com/t/ableitung-von-shopware-entity-im-core/86234 "2021-03-18T09:25:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![opalion](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@opalion](https://forum.shopware.com/u/opalion)\
**Post date:** [18. März 2021 um 09:25 UTC](https://forum.shopware.com/t/ableitung-von-shopware-entity-im-core/86234/1 "2021-03-18T09:25:21Z")

</div>

Hallo, weiß das vielleicht jemand.

Könnte man bspw. eine eigene Entität von einer bestehenden im Shopware Core ableiten und dann gewährleisten, dass Shopware selbst nur mehr mit die abgeleitete Entität verwendet?

Fiktives Beispiel:  
class MyCategoryEntity extends CategoryEntity  
{  
public function getExternalLink(): ?string  
{  
return „[https://www.mydomain.de](https://www.mydomain.de)“;  
}  
}
