From: Justin Hunter Date: Tue, 29 Sep 2009 23:50:43 +0000 (-0700) Subject: change Undef to an empty ArrayRef and remove auto_deref X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=106f5e00f3e7ce29918cdda6bae2ff433cc025e7;p=dbsrgits%2FSQL-Translator-2.0-ish.git change Undef to an empty ArrayRef and remove auto_deref --- diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index 78688c5..91e8cee 100644 --- a/lib/SQL/Translator/Object/Constraint.pm +++ b/lib/SQL/Translator/Object/Constraint.pm @@ -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' => (