# Fatal error: Call to undefined method xyz\\xyz::Collection()

**URL:** https://forum.shopware.com/t/fatal-error-call-to-undefined-method-xyz-xyz-collection/52015
**Category:** Programmierung
**Created:** [26. März 2018 um 07:11 UTC](https://forum.shopware.com/t/fatal-error-call-to-undefined-method-xyz-xyz-collection/52015 "2018-03-26T07:11:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![webarbeit](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@webarbeit](https://forum.shopware.com/u/webarbeit)
#### Post date: [26. März 2018 um 07:11 UTC](https://forum.shopware.com/t/fatal-error-call-to-undefined-method-xyz-xyz-collection/52015/1 "2018-03-26T07:11:05Z")

</div>

Hallo zusammen,

ich bin gerade dabei ein Plugin (Shopware \>= 5.2) zu erstellen.

Dabei kommt es zu folgendem Fehler:

Fatal error: Call to undefined method xyz\xyz::Collection()&nbsp;

Vermutlich muss noch eine Klasse per use importiert werden. Aber welche? Hat da jemand einen Tipp?

Danke und Grüße,  
Frank
