change Undef to an empty ArrayRef and remove auto_deref
Justin Hunter [Tue, 29 Sep 2009 23:50:43 +0000 (16:50 -0700)]
lib/SQL/Translator/Object/Constraint.pm

index 78688c5..91e8cee 100644 (file)
@@ -57,9 +57,12 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object {
     );
 
     has 'reference_columns' => (
-        isa => ArrayRef | Undef,
-        is => 'rw',
-        auto_deref => 1
+        isa => ArrayRef,
+        traits => ['Array'],
+        handles => {
+            reference_columns => 'elements',
+        },
+        default => sub { [] },
     );
 
     has 'match_type' => (