cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

Property "status" of class "Jobs\Entity\JobSnapshot" is immutable. #377

Closed cbleek closed 7 years ago

cbleek commented 7 years ago

We get an exception when deactivating Jobs in our demo

auswahl_999 385

#0 /data/www/clients/client1/web1/YAWIK/module/Jobs/src/Jobs/Entity/JobSnapshot.php(112): Jobs\Entity\JobSnapshot->immutable('status')
#1 /data/www/clients/client1/web1/YAWIK/module/Jobs/src/Jobs/Controller/ManageController.php(363): Jobs\Entity\JobSnapshot->changeStatus('inactive', 'Status changed ...')
#2 /data/www/clients/client1/web1/YAWIK/module/Jobs/src/Jobs/Controller/ManageController.php(214): Jobs\Controller\ManageController->changeStatus(Object(Jobs\Entity\JobSnapshot), 'inactive')
#3 /data/www/clients/client1/web1/YAWIK/module/Jobs/src/Jobs/Controller/ManageController.php(129): Jobs\Controller\ManageController->save()
#4 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Jobs\Controller\ManageController->editAction()
#5 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#6 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#7 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-eventmanager/src/EventManager.php(263): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#12 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-eventmanager/src/EventManager.php(263): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /data/www/clients/client1/web1/YAWIK/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 /data/www/clients/client1/web1/YAWIK/public/index.php(49): Zend\Mvc\Application->run()
#15 {main}
TiSiE commented 7 years ago

This is a duplicate of #376