| line |
true |
false |
branch |
|
19
|
0 |
0 |
if exists $self->raw->{'id'} |
|
24
|
0 |
0 |
unless exists $self->raw->{'id'} |
|
35
|
0 |
0 |
if $type->has_attribute($name) |
|
38
|
0 |
0 |
if ($type->has_relationship($name)) |
|
43
|
0 |
0 |
if $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
|
46
|
0 |
0 |
wantarray ? : |
|
64
|
0 |
0 |
unless defined $self->id |
|
70
|
0 |
0 |
if @attrs == 0 |
|
90
|
0 |
0 |
unless ref $data eq 'HASH' |
|
115
|
0 |
0 |
if 1 > $numargs or $numargs > 2 |
|
118
|
0 |
0 |
if ($numargs == 2) { } |
|
|
0 |
0 |
elsif ($numargs == 1) { } |
|
122
|
0 |
0 |
unless ref $_[0] eq 'HASH' |
|
135
|
0 |
0 |
if ($type->has_relationship($attr_name)) |
|
141
|
0 |
0 |
if $attr_name eq 'id' |
|
148
|
0 |
0 |
if defined $value and exists $self->raw->{$attr_name} and defined $self->raw->{$attr_name} and $value eq $self->raw->{$attr_name} |
|
152
|
0 |
0 |
unless exists $self->_modified->{$attr_name} |
|
165
|
0 |
0 |
unless ref $data eq 'HASH' or ref $data eq 'ARRAY' or &blessed($data) and $data->isa('DBIx::EAV::Entity') |
|
169
|
0 |
0 |
if ref $data eq 'ARRAY' and $rel->{'is_has_one'} || $rel->{'is_has_many'} && $rel->{'is_right_entity'} |
|
189
|
0 |
0 |
if ($is_new_entity) |
|
198
|
0 |
0 |
unless $id > 0 |
|
204
|
0 |
0 |
unless $static_attributes->{'id'} == $id |
|
224
|
0 |
0 |
if ($attr_spec->{'is_static'}) |
|
237
|
0 |
0 |
if (not defined $value) { } |
|
|
0 |
0 |
elsif (defined $old_value) { } |
|
260
|
0 |
0 |
if ($modified_count > 0) |
|
262
|
0 |
0 |
if keys %modified_static_attributes > 0 |
|
278
|
0 |
0 |
$rel->{'is_right_entity'} ? : |
|
285
|
0 |
0 |
unless $options->{'keep_current_links'} |
|
288
|
0 |
0 |
ref $data eq 'ARRAY' ? : |
|
291
|
0 |
0 |
if (&blessed($entity)) { } |
|
|
0 |
0 |
elsif (ref $entity eq 'HASH') { } |
|
293
|
0 |
0 |
unless $entity->isa('DBIx::EAV::Entity') |
|
296
|
0 |
0 |
unless $entity->type->id == $related_type->id |
|
299
|
0 |
0 |
unless $entity->in_storage |
|
307
|
0 |
0 |
unless $rel->{'is_many_to_many'} |
|
322
|
0 |
0 |
unless $relationship_table->insert({'relationship_id', $rel->{'id'}, $our_side . '_entity_id', $self->id, $their_side . '_entity_id', $entity->id}) |
|
332
|
0 |
0 |
if $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
|
343
|
0 |
0 |
if $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
|
346
|
0 |
0 |
$rel->{'is_right_entity'} ? : |
|
348
|
0 |
0 |
unless ref $data eq 'ARRAY' |
|
353
|
0 |
0 |
unless &blessed($entity) and $entity->isa('DBIx::EAV::Entity') and $entity->type->name eq $rel->{'entity'} |
|
378
|
0 |
0 |
unless $self->in_storage |
|
389
|
0 |
0 |
if $rel->{'is_right_entity'} or $rel->{'is_many_to_many'} or exists $rel->{'cascade_delete'} and $rel->{'cascade_delete'} == 0 |
|
397
|
0 |
0 |
unless ($eav->schema->database_cascade_delete) |
|
428
|
0 |
0 |
if ref $class |
|
435
|
0 |
0 |
if ref $class |
|
436
|
0 |
0 |
unless $class->is_custom_class |
|
440
|
0 |
0 |
unless (defined *{"${class}::__TYPE_DEFINITION__";}) |
|
445
|
0 |
0 |
if $parent_class ne 'DBIx::EAV::Entity' |
|
461
|
0 |
0 |
if ref $class |
|
462
|
0 |
0 |
unless $class->is_custom_class |
|
465
|
0 |
0 |
$stuff eq 'attribute' ? : |