X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FPK.pm;h=9bda5cac47b48bc5e57aa578c35a830a082159ca;hb=08a8d8f1b8a69ea29bcceb9f399214943a34905c;hp=cb204b7519822ae5441e0c7605eb459cb2c089d6;hpb=56ad42bb48befbeb50953d197e7cb86bbc62686c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/PK.pm b/lib/DBIx/Class/PK.pm index cb204b7..9bda5ca 100644 --- a/lib/DBIx/Class/PK.pm +++ b/lib/DBIx/Class/PK.pm @@ -87,7 +87,7 @@ sub ID { sub _create_ID { my ($self, %vals) = @_; - return undef unless 0 == grep { !defined } values %vals; + return undef if grep { !defined } values %vals; return join '|', ref $self || $self, $self->result_source->name, map { $_ . '=' . $vals{$_} } sort keys %vals; } @@ -134,15 +134,17 @@ sub _mk_ident_cond { return \%cond; } -1; - -=head1 AUTHOR AND CONTRIBUTORS +=head1 FURTHER QUESTIONS? -See L and L in DBIx::Class +Check the list of L. -=head1 LICENSE +=head1 COPYRIGHT AND LICENSE -You may distribute this code under the same terms as Perl itself. +This module is free software L +by the L. You can +redistribute it and/or modify it under the same terms as the +L. =cut +1;