Hi,
I’m experiencing an issue building a multiple word PurchaseOrders
.
Below is the issue I’m getting. It seems to me that $PurchaseOrders is null
since on the /add route it gives me Call to a member function newEmptyEntity() on null
.
I also tried creating menu_links
the same in the docs and it still doesn’t work.
Notice (1024): Undefined property: OrderPurchasesController::$OrderPurchases in C:\TinkrApps\kura\kura-php\src\Controller\OrderPurchasesController.php on line 24 [CORE\src\Controller\Controller.php, line 329]
Code Context
Cake\Controller\Controller::__get() - CORE\src\Controller\Controller.php, line 329
App\Controller\OrderPurchasesController::index() - APP/Controller\OrderPurchasesController.php, line 24
Cake\Controller\Controller::invokeAction() - CORE\src\Controller\Controller.php, line 539
Cake\Controller\ControllerFactory::handle() - CORE\src\Controller\ControllerFactory.php, line 140
Cake\Controller\ControllerFactory::invoke() - CORE\src\Controller\ControllerFactory.php, line 115
Cake\Http\BaseApplication::handle() - CORE\src\Http\BaseApplication.php, line 317
Cake\Http\Runner::handle() - CORE\src\Http\Runner.php, line 77
Authorization\Middleware\RequestAuthorizationMiddleware::process() - ROOT\vendor\cakephp\authorization\src\Middleware\RequestAuthorizationMiddleware.php, line 102
Cake\Http\Runner::handle() - CORE\src\Http\Runner.php, line 73
Authorization\Middleware\AuthorizationMiddleware::process() - ROOT\vendor\cakephp\authorization\src\Middleware\AuthorizationMiddleware.php, line 129
Cake\Http\Runner::handle() - CORE\src\Http\Runner.php, line 73
Authentication\Middleware\AuthenticationMiddleware::process() - ROOT\vendor\cakephp\authentication\src\Middleware\AuthenticationMiddleware.php, line 124
Cake\Http\Runner::handle() - CORE\src\Http\Runner.php, line 73
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE\src\Http\Middleware\CsrfProtectionMiddleware.php, line 174
Cake\Http\Runner::handle() - CORE\src\Http\Runner.php, line 73
CakePHP 4.3.7
PHP 7.4
MySQL 5.7