original_string: protected function from_db_records(array $results) {
          $entityfactory = $this->get_entity_factory();
  
          return array_map(function(array $result) use ($entityfactory) {
              ['record' => $record] = $result;
              return $entityfactory->get_post_from_stdclass($record);
          }, $results);
      }
code: protected function from_db_records(array $results) {
          $entityfactory = $this->get_entity_factory();
  
          return array_map(function(array $result) use ($entityfactory) {
              ['record' => $record] = $result;
              return $entityfactory->get_post_from_stdclass($record);
          }, $results);
      }
code_tokens: protected function from_db_records ( array $ results ) { $ entityfactory = $ this -> get_entity_factory ( ) ; return array_map ( function ( array $ result ) use ( $ entityfactory ) { [ 'record' => $ record ] = $ result ; return $ entityfactory -> get_post_from_stdclass ( $ record ) ; } , $ results ) ; }
docstring: Convert the DB records into post entities.
  
  @param array $results The DB records
  @return post_entity[]
docstring_tokens: Convert the DB records into post entities .