> Yes there is Ok, I evidently I am too stupid.
I tried to store the second parameter that gets passed to the inflate-sub in the object. This is a instance of my business-class (i.e. the one that derives from DBIx::Class). Naively I had expected this also to be an instance of DBIx::Class::Row but it isn't... So now I get "Can't locate object method "make_column_dirty" via package ...". Can someone please explain to me how to get to a DBIx::Class::Row instance? Boy - I really do hope that all of this will pay off in the future :-) --- On Mon, 5/4/09, Moritz Onken <[email protected]> wrote: > From: Moritz Onken <[email protected]> > Subject: Re: [Dbix-class] dirty-flag on inflated columns > To: "DBIx::Class user and developer list" <[email protected]> > Date: Monday, May 4, 2009, 11:25 AM > > Am 04.05.2009 um 17:18 schrieb Morgon Hed: > > > > > Hi! > > > > I have a XML-column that I inflate/deflate to an > object. > > > > What works is to create a new instance of such an > object and pass that to the column-accessor, then when > updating the object is deflated and stored in the database. > > > > The problem now is that I want to call a method on the > inflated object which changes it's internal state but the > problem is that now when I do an update DBIx::Class does not > consider the column dirty and does not update it. > > > > So basically what I need is way for the inflated > object to mark the column as dirty when it's state has > changed ... > > > > Is there a way to do that? > > Yes there is: > > http://search.cpan.org/~ribasushi/DBIx-Class-0.08102/lib/DBIx/Class/Row.pm#make_column_dirty > > moritz > > _______________________________________________ > 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/[email protected] > _______________________________________________ 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/[email protected]
