DBIx-Class-I18NColumns
view release on metacpan or search on metacpan
lib/DBIx/Class/I18NColumns.pm view on Meta::CPAN
352353354355356357358359360361362363364365366367368369370371372
}
return
$self
->
next
::method(
$column
,
@_
);
}
=head2 update
Overloaded L<DBIx::Class::Row/update> to manage i18n columns cleanly.
=cut
sub
update {
my
$self
=
shift
;
$self
->
next
::method(
@_
);
if
(
$self
->_i18n_column_row ) {
for
my
$lang
(
keys
%{
$self
->_i18n_column_row} ) {
my
$i18n_row
=
$self
->_i18n_column_row->{
$lang
};
$i18n_row
->in_storage ?
$i18n_row
->update :
$i18n_row
->insert ;
}
}
( run in 1.010 second using v1.01-cache-2.11-cpan-49f99fa48dc )