Hi all,
I am having trouble using JsonView in TYPO3. Problem is that I don't get descendant objects of my "Camera" object.
public function listAction() {
$this->view->setVariablesToRender(array('cameras'));
$this->view->setConfiguration(array(
'cameras' => array(
'_descend' => array(
'sensor' => array(
'_descendAll' => array(
)
)
)
)
));
$this->view->assign('cameras', $this->cameraRepository->findAll());
}
Model looks like this:
Camera - title, sensor, type, provider
Sensor - title
Provider - title
In my json I want to get also sensor and provider for every listed camera. All I get is a title and type (simple strings).
Any idea what I am doing wrong?
Thanks.