Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Error when saving Entity without Listener #154

@avolutions

Description

@avolutions

I receive an error if I call Entity-save() for an Entity where no Listener exists:

Fatal error: Uncaught Error: Class "Application\Listener\UserListener" not found in \src\Event\EventDispatcher.php:38 Stack trace: #0 \src\Orm\Entity.php(107): Avolutions\Event\EventDispatcher::dispatch(Object(Avolutions\Event\EntityEvent)) #1 \application\Controller\DefaultController.php(16): Avolutions\Orm\Entity->save() #2 [internal function]: Application\Controller\DefaultController->indexAction('1') #3 \src\Http\Request.php(90): call_user_func_array(Array, Array) #4 \public\index.php(33): Avolutions\Http\Request->send() #5 {main} thrown in \src\Event\EventDispatcher.php on line 38

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions