Skip to content
Snippets Groups Projects
Commit d9663465 authored by Demian Katz's avatar Demian Katz
Browse files

Skip invalid records.

parent 64f25a46
No related merge requests found
......@@ -101,7 +101,9 @@ class RecordCollectionFactory implements RecordCollectionFactoryInterface
}
$collection = new $this->collectionClass($response);
foreach ($response['data'] as $doc) {
$collection->add(call_user_func($this->recordFactory, $doc));
if (isset($doc['id'])) {
$collection->add(call_user_func($this->recordFactory, $doc));
}
}
return $collection;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment