1 package SQL::Translator::Role::BuildArgs;
5 SQL::Translator::Role::BuildArgs - Remove undefined constructor arguments
11 with qw(SQL::Translator::Role::BuildArgs);
15 This L<Moo::Role> wraps BUILDARGS to remove C<undef> constructor
16 arguments for backwards compatibility with the old L<Class::Base>-based
17 L<SQL::Translator::Schema::Object>.
23 around BUILDARGS => sub {
26 my $args = $self->$orig(@_);
28 foreach my $arg (keys %{$args}) {
29 delete $args->{$arg} unless defined($args->{$arg});