From: Matt Phillips Date: Sat, 26 Feb 2011 20:35:42 +0000 (-0500) Subject: Modified: small doc patch explaining a gotcha X-Git-Tag: v0.08191~74 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=45bffdf0de2d64c3559c285103e60fc47eee6007 Modified: small doc patch explaining a gotcha --- diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index c8681b7..ec883e8 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -346,6 +346,8 @@ marcus: Marcus Ramberg mattlaw: Matt Lawrence +mattp: Matt Phillips + michaelr: Michael Reddick milki: Jonathan Chu diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index fab2a27..77ff966 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -3764,6 +3764,10 @@ passed to object inflation. Note that the 'artist' is the name of the column (or relationship) accessor, and 'name' is the name of the column accessor in the related table. +B You need to explicitly quote '+columns' when defining the attribute. +Not doing so causes Perl to incorrectly interpret +columns as a bareword with a +unary plus operator before it. + =head2 include_columns =over 4 @@ -3804,6 +3808,10 @@ identifier aliasing. You can however alias a function, so you can use it in e.g. an C clause. This is done via the C<-as> B