projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Documentation updates from omega, carbon
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Relationship.pm
diff --git
a/lib/DBIx/Class/Relationship.pm
b/lib/DBIx/Class/Relationship.pm
index
3ee93ff
..
9edd7af
100644
(file)
--- a/
lib/DBIx/Class/Relationship.pm
+++ b/
lib/DBIx/Class/Relationship.pm
@@
-60,6
+60,7
@@
this:
my $fred = $schema->resultset('Author')->find({ Name => 'Fred' });
my $fredsbooks = $schema->resultset('Book')->search({ Author => $fred->ID });
+
With a has_many relationship called "books" on Author (see below for details),
we can do this instead: