http://iris-co-be.soluciones.software/seguridads.csv

Exceptions

Notice: Trying to get property 'tramo' of non-object

Exception

ErrorException

in src/Entity/Seguridad.php (line 1282)
  1.         $id $this->id;
  2.         if($id 10){
  3.           return ($this->segmento $this->segmento->tramo->unidadFuncional->getfullCodigos() : '') .'::''SEG' .'::' $this->segmento->tramo->codigo '::'$this->segmento->codigo '::' $this->tipoElemento->getId() . '::' . ("00" $id);
  4.         }
  5.         if($id >= 10){
  6.           return ($this->segmento $this->segmento->tramo->unidadFuncional->getfullCodigos() : '') .'::''SEG''::' $this->segmento->tramo->codigo '::'$this->segmento->codigo '::' $this->tipoElemento->getId() . '::' .("0" $id);
  7.         }
  8.         if($id 99){
  9.           return ($this->segmento $this->segmento->tramo->unidadFuncional->getfullCodigos() : '') .'::''SEG''::' $this->segmento->tramo->codigo '::'$this->segmento->codigo '::' $this->tipoElemento->getId() . '::' .($id);
  10.         }
  11.         // return $this->id;
  1.         $result self::$resultProto;
  2.         $object $zval[self::VALUE];
  3.         $access $this->getReadAccessInfo(\get_class($object), $property);
  4.         if (self::ACCESS_TYPE_METHOD === $access[self::ACCESS_TYPE]) {
  5.             $result[self::VALUE] = $object->{$access[self::ACCESS_NAME]}();
  6.         } elseif (self::ACCESS_TYPE_PROPERTY === $access[self::ACCESS_TYPE]) {
  7.             $result[self::VALUE] = $object->{$access[self::ACCESS_NAME]};
  8.             if ($access[self::ACCESS_REF] && isset($zval[self::REF])) {
  9.                 $result[self::REF] = &$object->{$access[self::ACCESS_NAME]};
  1.                     }
  2.                 }
  3.                 $zval $this->readIndex($zval$property);
  4.             } else {
  5.                 $zval $this->readProperty($zval$property);
  6.             }
  7.             // the final value of the path must not be validated
  8.             if ($i $propertyPath->getLength() && !\is_object($zval[self::VALUE]) && !\is_array($zval[self::VALUE])) {
  9.                 throw new UnexpectedTypeException($zval[self::VALUE], $propertyPath$i 1);
in vendor/symfony/property-access/PropertyAccessor.php->readPropertiesUntil (line 91)
  1.         $propertyPath $this->getPropertyPath($propertyPath);
  2.         $zval = [
  3.             self::VALUE => $objectOrArray,
  4.         ];
  5.         $propertyValues $this->readPropertiesUntil($zval$propertyPath$propertyPath->getLength(), $this->ignoreInvalidIndices);
  6.         return $propertyValues[\count($propertyValues) - 1][self::VALUE];
  7.     }
  8.     /**
  1.     {
  2.         $context['api_attribute'] = $attribute;
  3.         $propertyMetadata $this->propertyMetadataFactory->create($context['resource_class'], $attribute$this->getFactoryOptions($context));
  4.         try {
  5.             $attributeValue $this->propertyAccessor->getValue($object$attribute);
  6.         } catch (NoSuchPropertyException $e) {
  7.             if (!$propertyMetadata->hasChildInherited()) {
  8.                 throw $e;
  9.             }
  1.             $maxDepthReached false;
  2.             if (null !== $attributesMetadata && ($maxDepthReached $this->isMaxDepthReached($attributesMetadata$class$attribute$context)) && !$maxDepthHandler) {
  3.                 continue;
  4.             }
  5.             $attributeValue $this->getAttributeValue($object$attribute$format$context);
  6.             if ($maxDepthReached) {
  7.                 $attributeValue $maxDepthHandler($attributeValue$object$attribute$format$context);
  8.             }
  9.             /**
  1.         if (isset($context['resources'])) {
  2.             $context['resources'][$iri] = $iri;
  3.         }
  4.         $data parent::normalize($object$format$context);
  5.         if ($emptyResourceAsIri && \is_array($data) && === \count($data)) {
  6.             return $iri;
  7.         }
  8.         return $data;
in vendor/symfony/serializer/Serializer.php->normalize (line 152)
  1.      */
  2.     public function normalize($data$format null, array $context = [])
  3.     {
  4.         // If a normalizer supports the given data, use it
  5.         if ($normalizer $this->getNormalizer($data$format$context)) {
  6.             return $normalizer->normalize($data$format$context);
  7.         }
  8.         if (null === $data || is_scalar($data)) {
  9.             return $data;
  10.         }
in vendor/symfony/serializer/Serializer.php->normalize (line 162)
  1.         }
  2.         if (\is_array($data) || $data instanceof \Traversable) {
  3.             $normalized = [];
  4.             foreach ($data as $key => $val) {
  5.                 $normalized[$key] = $this->normalize($val$format$context);
  6.             }
  7.             return $normalized;
  8.         }
in vendor/symfony/serializer/Serializer.php->normalize (line 125)
  1.         if (!$this->supportsEncoding($format$context)) {
  2.             throw new NotEncodableValueException(sprintf('Serialization for the format %s is not supported'$format));
  3.         }
  4.         if ($this->encoder->needsNormalization($format$context)) {
  5.             $data $this->normalize($data$format$context);
  6.         }
  7.         return $this->encode($data$format$context);
  8.     }
  1.         $context['resources_to_push'] = &$resourcesToPush;
  2.         $context[AbstractObjectNormalizer::EXCLUDE_FROM_CACHE_KEY][] = 'resources_to_push';
  3.         $request->attributes->set('_api_normalization_context'$context);
  4.         $event->setControllerResult($this->serializer->serialize($controllerResult$request->getRequestFormat(), $context));
  5.         $request->attributes->set('_resources'$request->attributes->get('_resources', []) + (array) $resources);
  6.         if (!\count($resourcesToPush)) {
  7.             return;
  8.         }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1.     Request::setTrustedHosts([$_ENV['TRUSTED_HOSTS']]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

ErrorException

ErrorException:
Notice: Trying to get property 'tramo' of non-object

  at src/Entity/Seguridad.php:1282
  at App\Entity\Seguridad->getFullCodigo()
     (vendor/symfony/property-access/PropertyAccessor.php:373)
  at Symfony\Component\PropertyAccess\PropertyAccessor->readProperty(array(object(Seguridad)), 'fullCodigo')
     (vendor/symfony/property-access/PropertyAccessor.php:296)
  at Symfony\Component\PropertyAccess\PropertyAccessor->readPropertiesUntil(array(object(Seguridad)), object(PropertyPath), 1, true)
     (vendor/symfony/property-access/PropertyAccessor.php:91)
  at Symfony\Component\PropertyAccess\PropertyAccessor->getValue(object(Seguridad), object(PropertyPath))
     (vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php:521)
  at ApiPlatform\Core\Serializer\AbstractItemNormalizer->getAttributeValue(object(Seguridad), 'fullCodigo', 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList), 'api_sub_level' => true, 'iri' => '/seguridads/57', 'api_normalize' => true, 'cache_key' => '48d955ff8f156ad00fad13d4ccf30df3', 'circular_reference_limit_counters' => array('0000000077007be500000000597fa902' => 1), 'api_attribute' => 'fullCodigo'))
     (vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:132)
  at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize(object(Seguridad), 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList), 'api_sub_level' => true, 'iri' => '/seguridads/57', 'api_normalize' => true, 'cache_key' => '48d955ff8f156ad00fad13d4ccf30df3', 'circular_reference_limit_counters' => array('0000000077007be500000000597fa902' => 1)))
     (vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php:151)
  at ApiPlatform\Core\Serializer\AbstractItemNormalizer->normalize(object(Seguridad), 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList), 'api_sub_level' => true, 'iri' => '/seguridads/57', 'api_normalize' => true))
     (vendor/symfony/serializer/Serializer.php:152)
  at Symfony\Component\Serializer\Serializer->normalize(object(Seguridad), 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList)))
     (vendor/symfony/serializer/Serializer.php:162)
  at Symfony\Component\Serializer\Serializer->normalize(object(Paginator), 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList)))
     (vendor/symfony/serializer/Serializer.php:125)
  at Symfony\Component\Serializer\Serializer->serialize(object(Paginator), 'csv', array('groups' => array('seguridad'), 'operation_type' => 'collection', 'collection_operation_name' => 'get', 'resource_class' => 'App\\Entity\\Seguridad', 'input' => null, 'output' => null, 'request_uri' => '/seguridads.csv', 'uri' => 'http://iris-co-be.soluciones.software/seguridads.csv', 'resources' => object(ResourceList), 'exclude_from_cache_key' => array('resources', 'resources_to_push'), 'resources_to_push' => object(ResourceList)))
     (vendor/api-platform/core/src/EventListener/SerializeListener.php:95)
  at ApiPlatform\Core\EventListener\SerializeListener->onKernelView(object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:212)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.view', object(GetResponseForControllerResultEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:145)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
     (vendor/symfony/http-kernel/HttpKernel.php:155)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)