Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: copy in DBIX:Class

by castaway (Parson)
on Apr 16, 2007 at 12:39 UTC ( #610334=note: print w/replies, xml ) Need Help??


in reply to copy in DBIX:Class

Set "cascade_copy => 0" in your relationship attributes, that will prevent it from copying them.

C.

Replies are listed 'Best First'.
Re^2: copy in DBIX:Class
by palette (Scribe) on May 08, 2007 at 15:32 UTC
    __PACKAGE__->has_many(o=> 'DSLP2::Main::O','id',{cascade_copy=>0})

    will this work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://610334]
help
Chatterbox?
[Corion]: Hmmm. I feel a Meditation coming on. I wrote a module, DBIx::PivotQuery, which returns a table-like set of rows (AoA) but some columns are generated from column values, like in an (Excel) pivot table or a ROLLUP command
[Corion]: My current approach for subtotals involves rerunning the given query, with the hint to the user that they should use a temporary table if they want better performance.
[Corion]: But I could create that temporary table in the module and use it for the improved perfomance directly instead.
[Corion]: And the question is, what would be better/preferred ;-)
[Corion]: Hmm - not exactly like the ROLLUP command. Ah well.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-02-23 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.