dblayeroo: update exception message to add the table name

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3568 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-03 19:01:56 +00:00
parent 0f6f269ede
commit ccb0fb8385

View File

@@ -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;