[Dbix-class] dirty-flag on inflated columns
morgonhed at yahoo.com
Mon May 4 16:35:08 GMT 2009
> Yes there is:
Not in my version it seems.
I have 0.08013 and in this version there does not seem to be a "make_column_dirty" method in DBIx::Class::Row (I just inspected the code).
--- On Mon, 5/4/09, Moritz Onken <onken at houseofdesign.de> wrote:
> From: Moritz Onken <onken at houseofdesign.de>
> Subject: Re: [Dbix-class] dirty-flag on inflated columns
> To: "DBIx::Class user and developer list" <dbix-class at lists.scsys.co.uk>
> 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
> > 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:
> 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://firstname.lastname@example.org
More information about the DBIx-Class