Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Search for ORM with Multi-Table-Object Support

by Your Mother (Archbishop)
on May 02, 2012 at 20:14 UTC ( [id://968530]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $user ( $users->all )
    {
    ...
            print join(", ", map { $_->name } $role->role->users);
        }
    }
    
  2. or download this
    my $full_rs = $schema->resultset("user");
    my @ids = $full_rs->get_column("id")->all;
    ...
                 ->search({},{columns => ["id"])
                 ->hashref_rs
                 ->all;
    
  3. or download this
    printf "\$%.2f\n", $user->orders->get_column("total")->sum;
    
  4. or download this
      $schema->resultset("Company")
             ->find($id)
             ->users
             ->active
             ->with_overdue_balance;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://968530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-24 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found