Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

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

by Xel (Novice)
on May 02, 2012 at 21:11 UTC ( #968544=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Tablesetup:
    [user]
    ...
    print $user->firstname; # prints prefetched firstname
    print $user->lastname; # prints prefetched lastname
    print $user->profile_text; # prints lazy-loaded profile_text
    
  2. or download this
    $user = $schema->resultset('User')->find(1);
    print $user->user_contact->firstname;
    print $user->user_contact->lastname;
    print $user->user_profile->profile_text;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (18)
As of 2013-06-20 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (681 votes), past polls