diff --git a/dblayeroo.php b/dblayeroo.php index 5e382f8..9be5aa5 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2282,8 +2282,9 @@ class dblayeroo "The field '%s' must be test on foreign, but is not provided"), $field); if (! array_key_exists ($params[0], $this->setForeignObj)) - $this->DBException (dgettext ("domframework", - "No foreign object configured to test the foreign key")); + $this->DBException (sprintf (dgettext ("domframework", + "No foreign object configured to test the foreign key for table '%s'"), + $this->table)); $this->debugLog ("CLONE to check foreign constraint [$field]"); $objTmp = clone $this->setForeignObj[$params[0]]; $objTmp->debug = $this->debug;