Skip to content

Commit

Permalink
Linked "prefetch" in columns documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
C.J. Adams-Collier authored and ribasushi committed Mar 20, 2015
1 parent cbb3ea4 commit 64fce75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ caelum: Rafael Kitover <rkitover@cpan.org>
caldrin: Maik Hentsche <maik.hentsche@amd.com>
castaway: Jess Robinson <castaway@desert-island.me.uk>
chorny: Alexandr Ciornii <alexchorny@gmail.com>
cj: C.J. Adams-Collier <cjcollier@cpan.org>
claco: Christopher H. Laco <claco@cpan.org>
clkao: CL Kao <clkao@clkao.org>
Ctrl-O http://ctrlo.com/
Expand Down
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Revision history for DBIx::Class

* Misc
- Remove warning about potential side effects of RT#79576 (scheduled)
- Various doc improvements (GH#72)
- Various doc improvements (GH#71, GH#72)
- Skip tests in a way more intelligent and speedy manner when optional
dependencies are missing
- Make the Optional::Dependencies error messages cpanm-friendly
Expand Down
4 changes: 2 additions & 2 deletions lib/DBIx/Class/ResultSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4083,13 +4083,13 @@ is the same as
as => [qw(some_column dbic_slot)]
If you want to individually retrieve related columns (in essence perform
manual prefetch) you have to make sure to specify the correct inflation slot
manual L</prefetch>) you have to make sure to specify the correct inflation slot
chain such that it matches existing relationships:
my $rs = $schema->resultset('Artist')->search({}, {
# required to tell DBIC to collapse has_many relationships
collapse => 1,
join => { cds => 'tracks'},
join => { cds => 'tracks' },
'+columns' => {
'cds.cdid' => 'cds.cdid',
'cds.tracks.title' => 'tracks.title',
Expand Down

0 comments on commit 64fce75

Please sign in to comment.