[Dbix-class] dirty-flag on inflated columns
onken at houseofdesign.de
Mon May 4 15:25:31 GMT 2009
Am 04.05.2009 um 17:18 schrieb Morgon Hed:
> 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:
More information about the DBIx-Class