Error [ 0 ]: Call to a member function get_id() on null

APPPATH/classes/Controller/Coins.php [ 676 ]

671         }*/
672 
673         $title = $image ? $image->get_name() : '';
674 
675         $image_obrev = $ccoin_obrev->get_collection([
676             'image_types.$id' => new MongoDB\BSON\ObjectId($image_type->get_id()),
677             'images' => $title
678         ]);
679         $obrev_ids = array();
680         foreach ($image_obrev as $obrev) {
681             $obrev_ids[] = new MongoDB\BSON\ObjectId($obrev->get_id());
  1. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Coins->action_object()

  2. {PHP internal call} » Kohana_Controller->execute()

  3. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment