I ran into weird behavior with a Symfony and Doctrine issue that really discovered what might be related to this error.
request.CRITICAL: PHP exception from Doctrine \ ORM \ EntityNotFoundException: "Object not found" exception. in /dev/vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php 177 {"exception": "[object] (Doctrine \ ORM \ EntityNotFoundException (code: 0)
To provide some sample code:
$nextItems = $this->itemManager->findNextItemByCatId($catId, 2, $allItems);
and then assign two returned results as follows:
$output["next"] = $nextItems[0]; $output["following"] = $nextItems[1];
which are then actually returned via the API.
However, when for testing purposes I assign random values:
$output["next"] = "Test value 1"; $output["following"] = "Test value 2";
then no exceptions and errors occur, and the response state is 200, as expected.
Any ideas here?
php orm symfony doctrine2
thitami Apr 28 '15 at 12:17 2015-04-28 12:17
source share