public function findOrFail($anr, $columns = [])
{
$entry = $this->find($anr, $columns);
// Make sure we check if the result is an entry or an array before
// we throw an exception in case the user wants raw results.
if (!$entry instanceof Model && !is_array($entry)) {
throw (new ModelNotFoundException())->setQuery($this->getUnescapedQuery(), $this->getDn());
}
return $entry;
}