Subject: | circular reference detected. |
I have a Catalyst app that uses a DBIx::Class schema with a DBIx-Class-InflateColumn-Object-Enum column.
if I remove the object-enum type and make it a varchar instead the circular reference is gone.
CatalystX::LeakChecker
2014-08-04 10:13:52 4812 Circular reference detected:
.------------------------------------------------------------------------.
| $a = $ctx->{stash}->{jobs}->{result_source}->{_columns}->{status}->{_- |
| inflate_info}->{inflate}; |
| code reference $a deparses to: sub { |
| package DBIx::Class::InflateColumn::Object::Enum; |
| use warnings; |
| use strict; |
| my $val = shift(); |
| my $c = {'values', $values}; |
| $$c{'unset'} = $$info{'is_nullable'} if exists $$info{'is_nullabl- |
| e'} and $$info{'is_nullable'}; |
| $$c{'default'} = $$info{'default_value'} if exists $$info{'defaul- |
| t_value'}; |
| my $e = 'Object::Enum'->new($c); |
| $e->value($val); |
| return $e; |
| }; |
| ${ $info } |
'------------------------------------------------------------------------'