Hi all,
I have 1 model, MediaRequest, that has a relationship set up with a 2nd model, File, with the alias "Files".
I want to display all the files in my view. To do that I can just write in my controller:
<?PHP
$this->view->files = $this->MediaRequest->Files
However, $this->view->files will then be an array of fully capable File model objects. I don't need that - I just want plain objects. The documentation shows how to set the hydrate mode when directly creating a list of models using find(), but I'm unsure how or when to set the hydration mode when I ask for a list of related models.