On Fri, 29 Jun 2007, Ramprabhu Kaliaperumal wrote:

I wrote a override method 'insert' in my class, which does password field encryption before inserting into db.

But there are some situation where I don't need to have this override method 'insert' get executed .. and just call the super 'insert' method.

Is there is any way to by-pass the overridden method.



1) Have the logic to "not call new code in insert", in your overridden insert method

2) call the overridden insert method something other than insert, i.e.
sub myinsert
{
  ## do stuff
  $self->insert();
}

and call that instead

Jess


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to