@@ -3892,7 +3892,7 @@ case the key is the C<as> value, and the value is used as the C<select>
38923892expression). Adds C<me. > onto the start of any column without a C<. > in
38933893it and sets C<select > from that, then auto-populates C<as > from
38943894C<select > as normal. (You may also use the C<cols > attribute, as in
3895- earlier versions of DBIC, but this is deprecated. )
3895+ earlier versions of DBIC, but this is deprecated)
38963896
38973897Essentially C<columns > does the same as L</select> and L</as> .
38983898
@@ -3905,16 +3905,20 @@ is the same as
39053905
39063906=head2 +columns
39073907
3908+ B<NOTE: > You B<MUST > explicitly quote C<'+columns' > when using this attribute.
3909+ Not doing so causes Perl to incorrectly interpret C<+columns > as a bareword
3910+ with a unary plus operator before it, which is the same as simply C<columns > .
3911+
39083912=over 4
39093913
3910- =item Value: \@columns
3914+ =item Value: \@extra_columns
39113915
39123916=back
39133917
39143918Indicates additional columns to be selected from storage. Works the same as
3915- L</columns> but adds columns to the selection. (You may also use the
3919+ L</columns> but adds columns to the current selection. (You may also use the
39163920C<include_columns > attribute, as in earlier versions of DBIC, but this is
3917- deprecated). For example:-
3921+ deprecated)
39183922
39193923 $schema->resultset('CD')->search(undef, {
39203924 '+columns' => ['artist.name'],
@@ -3926,20 +3930,6 @@ passed to object inflation. Note that the 'artist' is the name of the
39263930column (or relationship) accessor, and 'name' is the name of the column
39273931accessor in the related table.
39283932
3929- B<NOTE: > You need to explicitly quote '+columns' when defining the attribute.
3930- Not doing so causes Perl to incorrectly interpret +columns as a bareword with a
3931- unary plus operator before it.
3932-
3933- =head2 include_columns
3934-
3935- =over 4
3936-
3937- =item Value: \@columns
3938-
3939- =back
3940-
3941- Deprecated. Acts as a synonym for L</+columns> for backward compatibility.
3942-
39433933=head2 select
39443934
39453935=over 4
@@ -3970,20 +3960,22 @@ identifier aliasing. You can however alias a function, so you can use it in
39703960e.g. an C<ORDER BY > clause. This is done via the C<-as > B<select function
39713961attribute> supplied as shown in the example above.
39723962
3973- B<NOTE: > You need to explicitly quote '+select'/'+as' when defining the attributes.
3974- Not doing so causes Perl to incorrectly interpret them as a bareword with a
3975- unary plus operator before it.
3976-
39773963=head2 +select
39783964
3965+ B<NOTE: > You B<MUST > explicitly quote C<'+select' > when using this attribute.
3966+ Not doing so causes Perl to incorrectly interpret C<+select > as a bareword
3967+ with a unary plus operator before it, which is the same as simply C<select > .
3968+
39793969=over 4
39803970
3981- Indicates additional columns to be selected from storage. Works the same as
3982- L</select> but adds columns to the default selection, instead of specifying
3983- an explicit list.
3971+ =item Value: \@extra_select_columns
39843972
39853973=back
39863974
3975+ Indicates additional columns to be selected from storage. Works the same as
3976+ L</select> but adds columns to the current selection, instead of specifying
3977+ a new explicit list.
3978+
39873979=head2 as
39883980
39893981=over 4
@@ -3992,7 +3984,7 @@ an explicit list.
39923984
39933985=back
39943986
3995- Indicates column names for object inflation. That is L</as> indicates the
3987+ Indicates DBIC-side names for object inflation. That is L</as> indicates the
39963988slot name in which the column value will be stored within the
39973989L<Row|DBIx::Class::Row> object. The value will then be accessible via this
39983990identifier by the C<get_column > method (or via the object accessor B<if one
@@ -4028,12 +4020,18 @@ L<DBIx::Class::Manual::Cookbook> for details.
40284020
40294021=head2 +as
40304022
4023+ B<NOTE: > You B<MUST > explicitly quote C<'+as' > when using this attribute.
4024+ Not doing so causes Perl to incorrectly interpret C<+as > as a bareword
4025+ with a unary plus operator before it, which is the same as simply C<as > .
4026+
40314027=over 4
40324028
4033- Indicates additional column names for those added via L</+select> . See L</as> .
4029+ =item Value: \@extra_inflation_names
40344030
40354031=back
40364032
4033+ Indicates additional inflation names for selectors added via L</+select> . See L</as> .
4034+
40374035=head2 join
40384036
40394037=over 4
0 commit comments