DBIx-Class-Wrapper

 view release on metacpan or  search on metacpan

lib/DBIx/Class/Wrapper/Factory.pm  view on Meta::CPAN

}

=head2 update_or_create

Wraps around the original DBIC update_or_create method.

See L<DBIx::Class::ResultSet/update_or_create>

=cut

sub update_or_create {
    my ($self, $args) = @_;
    my $original = $self->dbic_rs->update_or_create($args);
    return $original ? $self->wrap($original) : undef;
}

=head2 find_or_create

Wraps around the original DBIC find_or_create method.

See L<DBIx::Class::ResultSet/find_or_create>

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.847 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )