Skip to content

Commit

Permalink
Release 1.24 - Runtime exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardnico committed Mar 3, 2022
1 parent d870d1c commit 9d7231e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ComboStrap/MetadataDbStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ private function syncTabular(MetadataTabular $metadata)
* @param array $row
* @param Metadata $metadata
* @return void
* @throws ExceptionCombo - if page id is null
*/
private function addRow(array $row, Metadata $metadata): void
{
Expand All @@ -122,7 +123,7 @@ private function addRow(array $row, Metadata $metadata): void
$resourceUidObject = $resourceCombo->getUidObject();
$uidValue = $resourceUidObject->getValue();
if ($uidValue === null) {
throw new ExceptionComboRuntime("The id ($resourceUidObject) is null for the resource $resourceCombo. We can't add a row in the database.");
throw new ExceptionCombo("The id ($resourceUidObject) is null for the resource $resourceCombo. We can't add a row in the database.");
}
$row[$resourceUidObject::getPersistentName()] = $uidValue;

Expand Down

0 comments on commit 9d7231e

Please sign in to comment.