projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Audit and annotate all context-sensitive spots in ::Ordered
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
CDBICompat
/
Relationships.pm
diff --git
a/lib/DBIx/Class/CDBICompat/Relationships.pm
b/lib/DBIx/Class/CDBICompat/Relationships.pm
index
f3c0c9c
..
7b08d07
100644
(file)
--- a/
lib/DBIx/Class/CDBICompat/Relationships.pm
+++ b/
lib/DBIx/Class/CDBICompat/Relationships.pm
@@
-218,7
+218,10
@@
sub search {
}
sub new_related {
- return shift->search_related(shift)->new_result(@_);
+ $_[0]->throw_exception("Calling new_related() as a class method is not supported")
+ unless length ref $_[0];
+
+ shift->next::method(@_);
}
=head1 FURTHER QUESTIONS?