[Dbix-class] RFC: Sane $row->copy behaviour

Simon Elliott simon at browsing.co.uk
Thu Jan 12 20:22:23 CET 2006


Currently if you do a ->copy you have to manually undef the PK(s).  
This is ideal for examples where you may have multiple PKs but only  
want to change one.

Now if there is only one PK it will undoubtedly need to change so my  
suggestion is that DBIC automagically undefs the PK in this case.  
Does this behaviour sound ok - or is it potentially too confusing?

- Simon.




More information about the Dbix-class mailing list