Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: DBIx::Class creating get_* and set_* methods

by jrockway (Acolyte)
on Feb 08, 2008 at 07:08 UTC ( [id://666917]=note: print w/replies, xml ) Need Help??


in reply to Re: DBIx::Class creating get_* and set_* methods
in thread DBIx::Class creating get_* and set_* methods

Never use get_column and set_column directly unless you know what the side-effects are. They don't work the same way as using the accessors. Inflation is skipped, resultsets are not returned for relationships, etc.
  • Comment on Re^2: DBIx::Class creating get_* and set_* methods

Replies are listed 'Best First'.
Re^3: DBIx::Class creating get_* and set_* methods
by emazep (Priest) on Feb 08, 2008 at 08:30 UTC
    Never use get_column and set_column directly unless you know what the side-effects are.
    I would rather say "the absence of side-effects" ;-)
    (That's exactly why I often use them and I find them perfectly adequate to get the columns raw values.)

    Anyway you are right, I should have specified that's not exactly the same semantics of the generated accessors.

    Cheers,
    Emanuele.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found