Exceptions
Exception
TypeError
in
src/Uplifted/BaseBundle/Service/BaseEntityManager.php
(line 686)
* @param int $entityId** @return object|null* @throws Exception*/public function find(int $entityId){// If the entity manager adds compulsory filters, or it defines it must find using enforced filters then run the// 'find' operation as a 'findBy id' oneif (count($this->addCompulsoryFilters(array())) > 0 ||
BaseEntityManager->find()
in
src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php
(line 360)
return 1;}try {// Try to fetch the real relationship entity$realRelationship = $this->relationshipManager->find($relationshipCache->id);if ($realRelationship === null) {return 1;}
EstateFlowEstateValueCalculator->getGratSpecialImpactMultiplierForFlow()
in
src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php
(line 149)
// Set limits to the ownershipMultiplier value - mirrors line 171$ownershipMultiplier = min(1, max(0, $ownershipMultiplier));// GRAT special impact multiplier - mirrors lines 173-179$gratSpecialImpactMultiplier = $this->getGratSpecialImpactMultiplierForFlow($relationship,$existingRelationshipRoles);// Skip couple members if flag is set - mirrors lines 181-190
EstateFlowEstateValueCalculator->calculateEstateValueInfo()
in
src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php
(line 269)
EstateFlowModelEntityCache $modelEntityCache,EstateFlowCache $estateFlow): array{// Get the estate value info for the model entity$modelEntityEstateValueInfo = $this->calculateEstateValueInfo($modelEntityCache,$estateFlow);$relatedModelEntitiesEstateValueInfoHonoringDashboardVisibility = [];
EstateFlowEstateValueCalculator->getEstateStructureInfo()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 2513)
];return;}try {$estateValueInfo = $this->estateFlowEstateValueCalculator->getEstateStructureInfo($modelEntity,$estateFlow);$modelEntity->estateValueInfo = json_decode(json_encode($estateValueInfo));} catch (\Exception $e) {
EstateFlowService->calculateAndSetEstateValue()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 2623)
$entitiesToRecalculate = array_reverse($entitiesToRecalculate);foreach ($entitiesToRecalculate as $entityId) {$entity = $this->findLastModelEntityInstanceById($entityId, $estateFlow);if ($entity !== null) {$this->calculateAndSetEstateValue($entity, $estateFlow);}}}/**
EstateFlowService->recalculateEstateValueCascade()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 2656)
}}// Trigger cascade recalculation for each affected entityforeach ($affectedEntities as $entity) {$this->recalculateEstateValueCascade($entity, $estateFlow);}}protected function addTimelineStrategyDynamicActionGroupTransition($dynamicActionGroup,
EstateFlowService->recalculateEstateValueForAffectedEntities()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 3018)
$this->doActionPostSrcApplicationCalculations($action, $estateFlow);$transition->appliedActions[] = $action;// Recalculate estate value for all affected entities after action is applied$this->recalculateEstateValueForAffectedEntities($action, $estateFlow);}private function setActionAvailableTargets($action, $transition, $estateFlow): void{$availableTargets = [];
EstateFlowService->applyAction()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 2912)
}$this->addFirstModificationModelEntityHistoryEntry($action->src->modelEntity, $estateFlow);}if ($this->isImplementableAction($action, $estateFlow)) {$this->applyAction($action, $transition, $estateFlow);$action->isRelevant = $transition->perspectivePresentOnTriggers;$action->isRelevant = $action->isRelevant || $this->actionShouldBeShownOnFlow($action, $estateFlow);//$action->isRelevant = $action->isRelevant && ($this->isEstateFlowEntityRelatedToPerspective($action->src, $estateFlow) || $this->isActionTargetsRelatedToPerspective($action, $estateFlow));
EstateFlowService->applyTransitionAction()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 2887)
$actions = $transition->actions;for ($i = 0; $i < count($transition->actions); $i++) {$action = $transition->actions[$i];$action->liveOrder = $i;$this->applyTransitionAction($action, $transition, $estateFlow);}}private function applyTransitionAction(EstateFlowActionCache $action, EstateFlowTransitionCache $transition, EstateFlowCache $estateFlow){
EstateFlowService->applyTransitionActions()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 1076)
// Mark extra info fro flow definition$this->setPerspectivePresentOnTransitionActivatedTriggers($transition, $estateFlow);// Apply transition actions$this->applyTransitionActions($transition, $estateFlow);if (count($transition->appliedActions) > 0) {// If transition has at least one action to show//if (array_filter($transition->appliedActions, fn($action) => $action->showOnFlow)) {// Add non affected perspective related entities
EstateFlowService->applyTransition()
in
src/AppBundle/Service/EstateFlow/EstateFlowService.php
(line 348)
}$this->loadEstateFlowEntitiesData($transitionsToApply, $estateFlow);foreach ($transitionsToApply as $transition) {$estateFlow->currentTransition = $transition;$this->applyTransition($transition, $estateFlow);}$this->addInitialGrowthState($estateFlow);// After all events loaded summarize total buckets
$estateFlowResult = null;if ($ignoreCache || !isset($estateFlow) || $estateFlow->getStatus() != EstateFlow::STATUS_OK){$fromCache = 'false';// Resolve estate flow$estateFlowResult = $this->estateFlowService->resolveEstateFlow($modelEntityId, $sequenceId, $timelineId);// Set related data to estateFlow for refrresh indexing$relatedData = $this->getRelatedData($estateFlowResult);// Set estateFlow result to json}//$estateFlowResult = $this->breakCircularReferences($estateFlowResult);//var_dump('start serialize');
$estateFlows[] = json_encode($defaultEstateFlow->estateFlow);// Resolve each timeline in the sequenceforeach ($sequence->getTimelines() as $timeline) {$timelineEstateFlow = $this->resolveEstateFlow($modelEntityId, $sequenceId, $timeline->getId());$estateFlows[] = json_encode($timelineEstateFlow->estateFlow);}return $estateFlows;}
EstateFlowManager->resolveSequenceEstateFlows()
in
src/AppBundle/Controller/EstateFlowController.php
(line 146)
ini_set('memory_limit', '512M');list($modelEntityId, $sequenceId) = $this->checkRequestAndResolveParameters($request);$response = new StreamedResponse(function() use ($modelEntityId, $sequenceId) {$estateFlows = $this->getEntityManager()->resolveSequenceEstateFlows($modelEntityId, $sequenceId);echo '[';$first = true;foreach ($estateFlows as $flow) {if (!$first) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
{closure:App\AppBundle\Controller\EstateFlowController::getEstateFlowsForSequence():145}
(line 101)
$requestStack = $this->requestStack;$response->setCallback(static function () use ($request, $callback, $requestStack) {$requestStack->push($request);try {$callback();} finally {$requestStack->pop();}});}
in
vendor/symfony/http-foundation/StreamedResponse.php
::
{closure:Symfony\Component\HttpKernel\HttpKernel::handle():98}
(line 125)
if (!isset($this->callback)) {throw new \LogicException('The Response callback must be set.');}($this->callback)();return $this;}/**
in
vendor/symfony/http-foundation/Response.php
->
sendContent
(line 403)
* @return $this*/public function send(bool $flush = true): static{$this->sendHeaders();$this->sendContent();if (!$flush) {return $this;}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
send
(line 38)
public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {fastcgi_finish_request();} elseif (\function_exists('litespeed_finish_request') && !$this->debug) {litespeed_finish_request();
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/sites/integrated_wealth_api/trunk/vendor/autoload_runtime.php')
in
web/index.php
(line 12)
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {header('Access-Control-Max-Age: 3600', true);exit(0);}require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';return function (array $context) {// Enable debug mode if configuredif ((bool) $context['APP_DEBUG']) {
Logs
| Level | Channel | Message |
|---|---|---|
| DEBUG 09:28:46 | event |
Notified event "debug.security.authorization.vote" to listener "Symfony\Bundle\SecurityBundle\EventListener\VoteListener::onVoterVote". {
"event": "debug.security.authorization.vote",
"listener": "Symfony\\Bundle\\SecurityBundle\\EventListener\\VoteListener::onVoterVote"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\MimeTypeListener::onKernelRequest". {
"event": "kernel.request",
"listener": "FOS\\RestBundle\\EventListener\\MimeTypeListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\FragmentListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\FormatListener::onKernelRequest". {
"event": "kernel.request",
"listener": "FOS\\RestBundle\\EventListener\\FormatListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\BodyListener::onKernelRequest". {
"event": "kernel.request",
"listener": "FOS\\RestBundle\\EventListener\\BodyListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.request" to listener "App\Uplifted\BaseBundle\EventListener\UserEnabledListener::onKernelRequest". {
"event": "kernel.request",
"listener": "App\\Uplifted\\BaseBundle\\EventListener\\UserEnabledListener::onKernelRequest"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ParamFetcherListener::onKernelController". {
"event": "kernel.controller",
"listener": "FOS\\RestBundle\\EventListener\\ParamFetcherListener::onKernelController"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller" to listener "App\AppBundle\EventListener\LoggerRequestResponseListener::onKernelController". {
"event": "kernel.controller",
"listener": "App\\AppBundle\\EventListener\\LoggerRequestResponseListener::onKernelController"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ViewResponseListener::onKernelController". {
"event": "kernel.controller",
"listener": "FOS\\RestBundle\\EventListener\\ViewResponseListener::onKernelController"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\IsSignatureValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\IsSignatureValidAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 09:28:46 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
App\Uplifted\BaseBundle\Service\BaseEntityManager::find(): Argument #1 ($entityId) must be of type int, null given, called in /var/www/sites/integrated_wealth_api/trunk/src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php on line 360
at src/Uplifted/BaseBundle/Service/BaseEntityManager.php:686
at App\Uplifted\BaseBundle\Service\BaseEntityManager->find()
(src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php:360)
at App\AppBundle\Service\EstateFlow\EstateFlowEstateValueCalculator->getGratSpecialImpactMultiplierForFlow()
(src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php:149)
at App\AppBundle\Service\EstateFlow\EstateFlowEstateValueCalculator->calculateEstateValueInfo()
(src/AppBundle/Service/EstateFlow/EstateFlowEstateValueCalculator.php:269)
at App\AppBundle\Service\EstateFlow\EstateFlowEstateValueCalculator->getEstateStructureInfo()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:2513)
at App\AppBundle\Service\EstateFlow\EstateFlowService->calculateAndSetEstateValue()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:2623)
at App\AppBundle\Service\EstateFlow\EstateFlowService->recalculateEstateValueCascade()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:2656)
at App\AppBundle\Service\EstateFlow\EstateFlowService->recalculateEstateValueForAffectedEntities()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:3018)
at App\AppBundle\Service\EstateFlow\EstateFlowService->applyAction()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:2912)
at App\AppBundle\Service\EstateFlow\EstateFlowService->applyTransitionAction()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:2887)
at App\AppBundle\Service\EstateFlow\EstateFlowService->applyTransitionActions()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:1076)
at App\AppBundle\Service\EstateFlow\EstateFlowService->applyTransition()
(src/AppBundle/Service/EstateFlow/EstateFlowService.php:348)
at App\AppBundle\Service\EstateFlow\EstateFlowService->resolveEstateFlow()
(src/AppBundle/Service/EstateFlowManager.php:216)
at App\AppBundle\Service\EstateFlowManager->resolveEstateFlow()
(src/AppBundle/Service/EstateFlowManager.php:198)
at App\AppBundle\Service\EstateFlowManager->resolveSequenceEstateFlows()
(src/AppBundle/Controller/EstateFlowController.php:146)
at App\AppBundle\Controller\EstateFlowController->{closure:App\AppBundle\Controller\EstateFlowController::getEstateFlowsForSequence():145}()
(vendor/symfony/http-kernel/HttpKernel.php:101)
at Symfony\Component\HttpKernel\HttpKernel::{closure:Symfony\Component\HttpKernel\HttpKernel::handle():98}()
(vendor/symfony/http-foundation/StreamedResponse.php:125)
at Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
(vendor/symfony/http-foundation/Response.php:403)
at Symfony\Component\HttpFoundation\Response->send()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:38)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/sites/integrated_wealth_api/trunk/vendor/autoload_runtime.php')
(web/index.php:12)
|