mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-03 01:58:40 +00:00
draft ::with() function for models
This commit is contained in:
parent
cf14041157
commit
68dc5223fd
|
|
@ -67,7 +67,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/QA/Theme/Backend/qa-dashboard');
|
||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1006001001, $request, $response));
|
||||
|
||||
$list = QAQuestionMapper::withConditional('language', $response->getLanguage())::getNewest(50);
|
||||
$list = QAQuestionMapper::with('language', $response->getLanguage())::getNewest(50);
|
||||
$view->setData('questions', $list);
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user