Querybuilder service ends code

To start what I'm using.

 "php": "7.1.7",
    "doctrine/dbal": "2.5.13",
    "doctrine/doctrine-bundle": "1.6.8",
    "doctrine/doctrine-migrations-bundle": "v1.3.1",
    "doctrine/orm": "2.5.6",
    "guzzlehttp/guzzle": "6.3.0",
    "incenteev/composer-parameter-handler": "2.1.2",
    "jms/serializer-bundle": "2.0.0",
    "lexik/jwt-authentication-bundle": "2.4.1",
    "php-amqplib/php-amqplib": "2.6.3",
    "sensio/distribution-bundle": "5.0.20",
    "sensio/framework-extra-bundle": "3.0.26",
    "symfony/monolog-bundle": "3.1.0",
    "symfony/polyfill-apcu": "1.4.0",
    "symfony/psr-http-message-bridge": "1.0.0",
    "symfony/swiftmailer-bundle": "3.0.3",
    "symfony/symfony": "3.4.1",
    "twig/twig": "2.4.4",
    "white-october/pagerfanta-bundle": "1.0.8"

So I have multiple systems running on this system. I am using postman to send a request to an API that then sends a message into a message queue where the message is then taken and manipulated by what I call the sender and sent to another API and returned back to the sender who then manipulates the data again to then be sent back to the starting API to then be pushed to a database.

The issue I have is that when it gets to a service the call dies and returns nothing at the point in the code. here is the service call, however, this same call is used in that same file in another function. So I know it works. I have looked in many places to see if there is something I'm missing with the possibility of services not being able to be initialized more then once. here is my service call if anyone is curious and the actual service if you need anything else please let me know.

<?php


namespace Directive\MultiTenant\TenantBundle\Service;

use Doctrine\Common\Persistence\ManagerRegistry;

class QBuilder
{
/**
 * QBuilder constructor.
 * @param ManagerRegistry $doctrine
 */
public function __construct(ManagerRegistry $doctrine)
{
    $this->doctrine = $doctrine;
}

/**
 * @param $repositoryName
 * @return \Doctrine\Common\Persistence\ObjectRepository
 */
function qBuilder($repositoryName)
{

    $repository = "DirectiveTenantBundle:$repositoryName";
    // get the authorization

    $qb = $this->doctrine->getRepository($repository, 'tenant');

    return $qb;
}
}

here is the service being called.

  /**
     * @param $repositoryName
     * @param BaseEntity $dataObject
     * @param array $requiredFields
     */
    protected function checkAction($repositoryName, $dataObject, $requiredFields)
    {
        set_error_handler(function($errno, $errstr, $errfile = 'C:\xampp\htdocs\jc-api-v3.3\src\Directive\MultiTenant\TenantBundle\Controller\Api\error.txt', $errline ){
            error_log($errstr . $errno. $errfile. $errline . "\r\n", 3, 'C:\xampp\htdocs\jc-api-v3.3\src\Directive\MultiTenant\TenantBundle\Controller\Api\error.txt');
           });

        $qBuilder = $this->get('app.qbuilder'); //This is where it dies.
        $queryResults = array();

Where it notes that it dies is where I can put a die after and I will not see it but before it will be fine I've gone into the class as well and put a die in the constructor and it's not getting there. I've thought about looking at doctrine a bit also see if there is something in there but what doesn't make sense is the fact that this same exact call is used elsewhere in the same file with no differences I even went and made a single function just with this in it and ran that and it worked fine. I'm not seeing where the issue is. I have tried to get errors to read out to catch what the issue us however due to the way it's built I can't see anything other than that it's responding to my "sender" with an empty response. When I try to grab errors and print them into a log as shown in the code above it only is symfony deprecated functions for version 3.4 which I do not use.

Thanks ahead.