diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index 51bab41ab..69d608ba0 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -617,6 +617,7 @@ class CakeSchema extends CakeObject { foreach ($fields as $value) { if (isset($value['key']) && $value['key'] === 'primary') { $hasPrimaryAlready = true; + break; } }