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);
    }
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);
    }
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 ) ; }
Convert the DB records into post entities.

@param array $results The DB records
@return post_entity[]
Convert the DB records into post entities .