diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php
index 0c844bbcb..3ab6139ef 100644
--- a/lib/Doctrine/ORM/Tools/SchemaTool.php
+++ b/lib/Doctrine/ORM/Tools/SchemaTool.php
@@ -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']);
                     }