Commit 30e22993 authored by beberlei's avatar beberlei

[2.0] DDC-109 - Fixed warning in SchemaTool with inverse join columns and unique constraints.

parent 10bc51fd
......@@ -401,7 +401,7 @@ class SchemaTool
$constraint2['local'][] = $inverseJoinColumn['name'];
$constraint2['foreign'][] = $inverseJoinColumn['referencedColumnName'];
if($inverseJoinColumn['unique'] == true) {
if(isset($inverseJoinColumn['unique']) && $inverseJoinColumn['unique'] == true) {
$joinTableOptions['uniqueConstraints'][] = array($inverseJoinColumn['name']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment