On Sat, Aug 20, 2011 at 8:03 PM, Rob Kinyon <rob.kin...@gmail.com> wrote: > It'd be nice if DBIC would convert the accessors to read-only. I think > that's the point.
In addition to the ++ for the idea I gave before I'll give a recent story: I needed this for a current project and instead ended up with a half-baked component and a whitelist hash to throw fatals on inserts and updates. In my case it was for legacy code which was riddled with side-effects during database operations so it was important to have most of the the old stuff that got run through DBIC be readonly while letting the new stuff act normal. __PACKAGE__->readonly(1); …is much cleaner and more maintenance friendly and I surely would like it and use it. _______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk