Skip to content

Commit 315a265

Browse files
committed
Check if the linked value exist in the table
1 parent 3eb5982 commit 315a265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JSONDB/JSONDB.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ protected function _parseValue($value, $properties)
671671
return $data['#rowid'];
672672
}
673673
}
674+
throw new Exception("JSONDB Error: There is no value \"{$value}\" in any rows of the table \"{$link_info[0]}\" at the column \"{$link_info[1]}\".");
674675
} else {
675676
switch ($properties['type']) {
676677
case 'int':

0 commit comments

Comments
 (0)