{ |
|
$entity = $this->first(); |
|
if (!$entity) { |
|
$table = $this->getRepository(); |
|
throw new RecordNotFoundException(sprintf( |
|
'Record not found in table "%s"', |
|
$table->getTable() |
|
)); |
|
} |
If you want to customize this error message, create templates/Error/error500.php