Cant acces files collection from item
The problem i have is: That when i retrieve a single item like this $item = PodioItem::get( $item_id ); foreach($item->files as $file) { var_dump($file->file_id); } I get the file_id's dumped but when i try the same on a collection of items by using the following code: $items = PodioItem::filter($app_id); foreach($items as $item) { foreach($item->files as $file) { var_dump($file->file_id); } } The files collection seems to be empty there are no files, no comments etc

  • Hi Wesley, When getting a collection the files are not normally returned for brevity. You can specifically request files be adding by adding ?fields=files to the end of the request URL. It's all undocumented for now and there's no built-in support in podio-php but it'll work just fine. /Andreas
This question is closed.