Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Can't call method "find" on an undefined value

by Anonymous Monk
on Feb 20, 2012 at 06:31 UTC ( [id://954992]=note: print w/replies, xml ) Need Help??


in reply to Re: Can't call method "find" on an undefined value
in thread Can't call method "find" on an undefined value

it should be $address = $c->model('AddressDB::Address')->find({id => $address_id});
  • Comment on Re^2: Can't call method "find" on an undefined value

Replies are listed 'Best First'.
Re^3: Can't call method "find" on an undefined value
by stonecolddevin (Parson) on Feb 21, 2012 at 20:54 UTC

    If it's the primary key you don't have to specify the column name

    Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found