I am working on a project to migrate from ZF2 to ZF3. I am facing a problem and try to solve by googled but no luck.
$this->dbAdapter = $this->getServiceLocator()->get('db');
$DBQueryObj = new DBQuery($this->dbAdapter, 'tbl_user'); // custom function
I need a similar code in ZF3 for this line so that I can pass adapter instance in my custom function.
$this->dbAdapter = $this->getServiceLocator()->get('db');
Can anyone point me how to achieve this in ZF3?
Thank you