Impact analysis: better error report if the data model defines redundancy on a unidirectional relation (make it easier to troubleshoot for consultants)

SVN:trunk[4840]
This commit is contained in:
Romain Quetiez
2017-07-19 12:53:38 +00:00
parent 2557d6e7d5
commit b9866008b2

View File

@@ -457,6 +457,10 @@ class RelationGraph extends SimpleGraph
{
// Get the upper neighbours
$sQuery = $aQueryInfo['sQueryUp'];
if (!$sQuery)
{
throw new Exception("Redundancy cannot be enabled on the relation $sRelCode/{$aQueryInfo['sDefinedInClass']}/{$aQueryInfo['sNeighbour']}: its direction is \"{$aQueryInfo['sDirection']}\"");
}
try
{
$oFlt = static::MakeSearch($sQuery);