Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 104898
Status: rejected
Priority: 0/
Queue: DBIx-Class

Owner: Nobody in particular
Requestors: kes-kes [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: implement: find_or_empty
Download (untitled) / with headers
text/plain 561b
This code $DBIC->resultset('Name' )->find( $id )->get_columns cause error: Can't call method "get_columns" on an undefined value at /home/feelsafe/public_html/www/autohandler line 174. To escape from constructions if( my $row = $DBIC->resultset('Name' )->find( $id ) ) { $result = $row->get_columns } else { my @columns = $DBIC->resultset( $table )->result_source->columns; @result{ @columns } = undef; } It will be good to have: %result = $DBIC->resultset('Name' )->find_or_empty( $id )->get_columns
From: kes-kes [...]
Download (untitled) / with headers
text/plain 203b
Show quoted text
> %result = $DBIC->resultset('Name' )->find_or_empty( $id )->get_columns
Also this must work: $DBIC->resultset('Name' )->find_or_empty( $id )->search_related() The result must be empty not undefined
Subject: [marked: outofscope] implement: find_or_empty
Download (untitled) / with headers
text/plain 318b
On Wed Jun 03 10:43:10 2015, wrote: Show quoted text
> > ... It will be good to have ... >
This is a feature request. It *has* merit, and would be an interesting extension. Closing this ticket as "wontimplement" for the same reason as described in

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to