projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Refactoring, cleanup, lose unnecessary resultset/cursor objects
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Table.pm
diff --git
a/lib/DBIx/Class/Table.pm
b/lib/DBIx/Class/Table.pm
index
ba79341
..
9aa00ab
100644
(file)
--- a/
lib/DBIx/Class/Table.pm
+++ b/
lib/DBIx/Class/Table.pm
@@
-169,7
+169,7
@@
creates one and returns that instead
sub find_or_create {
my $class = shift;
my $hash = ref $_[0] eq "HASH" ? shift: {@_};
- my ($exists) = $class->search($hash);
+ my $exists = $class->find($hash);
return defined($exists) ? $exists : $class->create($hash);
}