Welcome Guest, Not a member yet? Register   Sign In
How to work with multiple Entity Managers and Connections in a same functions
#1

I am using Codeigniter 3 for my application and I created two database connections i.e Company and History. Now I want to make 2 queries where query 1 call company entity manager and second query call History Entity manager. These query should be called in one function where i get stuck
here is my code

    $companies=$this->em->getRepository('comEntities\Company')->findAll();

    $histories=$this->em->getRepository('HistoryEntities\History')->findAll();
        
This is the error which I get

Message:
require(C:\xampp\htdocs\myApp\application\models/companies\comEntities\Company.php):failed to open stream: No such file or directory

Filename: third_party/ClassLoader.php

Line Number: 181
Reply


Messages In This Thread
How to work with multiple Entity Managers and Connections in a same functions - by surma - 08-06-2019, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB