If you use the convention:
my $value = $row->colABC, then you'll get the inflated value, provided the column is defined as an object.  If you want the raw value, ask for $row->get_column('colABC').

On 12/9/2022 7:00 AM, dbix-class-requ...@lists.scsys.co.uk wrote:
Send DBIx-Class mailing list submissions to
        dbix-class@lists.scsys.co.uk

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
or, via email, send a message with subject or body 'help' to
        dbix-class-requ...@lists.scsys.co.uk

You can reach the person managing the list at
        dbix-class-ow...@lists.scsys.co.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of DBIx-Class digest..."


Today's Topics:

    1. unexpected behavior using select with inflate_result
       (Mitchell Elutovich)


----------------------------------------------------------------------

Message: 1
Date: Fri, 9 Dec 2022 11:44:28 +0200
From: Mitchell Elutovich<melutov...@gmail.com>
Subject: [Dbix-class] unexpected behavior using select with
        inflate_result
To: "DBIx::Class user and developer list"
        <dbix-class@lists.scsys.co.uk>
Message-ID:
        <CAJO0H6tznwOc_ji1Cca_V7Xt0SWX7k9-4_k9=44hv-fvota...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I wrote some code similar to:

my $row = $self->search_related('xyzes', {}, { select => "colABC", as =>
"colABC" }->first();

xyzes is of type XYZ

Because of the "select", I was not expecting inflate_result on XYZ to be
called, however it is.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20221209/b163051a/attachment.html>

------------------------------

_______________________________________________
DBIx-Class mailing list
DBIx-Class@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class


End of DBIx-Class Digest, Vol 176, Issue 1
******************************************

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to