phpdoctrinequery-builderzend-framework3laminas-api-tools

Problem with $oQueryBuilder->getQuery()->getResult()


I created a table using Doctrine, Zend abigility and php. I have created the Entitiy, Repositry, Resource, Resource Factory, and the dispature. However, when I do the CRUD functions . I am not able to get the result "$oQueryBuilder->getQuery()->getResult()" as an Entity object , I am only able to get it as an arrav "$oQueryBuilder->getQuery()->getArrayResult()"...I want to get the query as an entity object, so what could be the solution?!! for more information: I am using serealization in array as Hydrator Service in Zend apigility and HalJson as a Content Negotiation Selector .. we are also using vueJS as a frontend.


Solution

  • Please check your module.config.php files related to the respective entity maybe check the path as well. I hope that will help:)