Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: A Growing Dislike for SQL-OOP Mappersby markle (Initiate) |
on Feb 11, 2008 at 22:17 UTC ( [id://667466]=note: print w/replies, xml ) | Need Help?? |
Why not just call SUPER::new() at the end of your new() override after doing your filesystem stuff instead of returning? Then you do not have to worry about how the ORM happens to handle things.
In your specific example, why would you want to die if the directory exists? Just pass on and call SUPER::new(). Or spell it out as Class::DBI::new(), if you are using multiple bases.
Stay out of its way instead?
In Section
Meditations
|
|