[Dbix-class] How not to fetch relational object?

Ash Berlin ash at cpan.org
Mon Dec 18 16:11:18 GMT 2006


$artist->get_column('cd')

vti wrote:
> Is there a way how not to fetch a relational object?
> 
> For example I have artist and cd. Relationships are trivial.
> 
> When I write artist->cd I want to get just id in artist table, but actually I am getting cd object and to get id have to artist->cd->id which is another SQL query, is there any way to get just column value and not going through all that relational stuff?
> 
> Probably you've already answered on that question. Sorry for that.
> 
> Thanks anyway.
> 
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/




More information about the Dbix-class mailing list