This is probably an easy one for someone out there. I’m just having trouble getting it all put together. I’m trying to pull tree data with assoicated data that also has tree structure.
$navigation = $this->find('children', [ 'for' => $id ]) ->find('threaded') ->contain(['Links']) ->toArray() ;
Links has Tree behavior as well and I need it to be sorted by the lft column.