line |
!l |
l&&!r |
l&&r |
condition |
56
|
0 |
3 |
1 |
$objects[0] and &blessed($objects[0]) |
78
|
0 |
0 |
1 |
ref $object and grep {$relation->{'type'} eq $_;} 'one', 'many' |
293
|
9 |
0 |
0 |
$class->can('_get_table_schema') and $class->can('_get_primary_key') |
433
|
0 |
0 |
11 |
ref $arg and ref $arg eq 'ARRAY' |
|
0 |
0 |
0 |
ref $arg and ref $arg eq 'HASH' |
574
|
11 |
0 |
0 |
$self->_smart_saving_used and defined $self->{'snapshoot'} |
|
11 |
0 |
0 |
$self->_smart_saving_used and defined $self->{'snapshoot'} and $self->{'snapshoot'} eq freeze($self->to_hash) |
577
|
11 |
0 |
0 |
exists $self->{'read_only'} and $self->{'read_only'} == 1 |
586
|
2 |
29 |
10 |
defined $pkey and $field eq $pkey |
|
31 |
7 |
3 |
defined $pkey and $field eq $pkey and not $self->{$pkey} |
587
|
38 |
0 |
0 |
ref $field and ref $field eq 'HASH' |
598
|
0 |
0 |
1 |
$relation->{'type'} and $relation->{'type'} eq 'one' |
637
|
0 |
0 |
7 |
$self->dbh and $param |
683
|
1 |
3 |
3 |
$primary_key and defined $self->{$primary_key} |
691
|
1 |
0 |
6 |
defined $primary_key and $self->can($primary_key) |
|
1 |
0 |
6 |
defined $primary_key and $self->can($primary_key) and $pkey_val |
702
|
0 |
0 |
4 |
$self->dbh and $param |
749
|
2 |
0 |
0 |
$param and $param->{'cascade'} |
782
|
8 |
0 |
7 |
$param and $param->{'only_defined_fields'} |
874
|
0 |
1 |
1 |
$relation->{'type'} eq 'many' and ref $relation->{'class'} eq 'HASH' |
885
|
0 |
0 |
2 |
$pk and $fk |
line |
l |
!l&&r |
!l&&!r |
condition |
52
|
0 |
0 |
15 |
$rel->{'foreign_key'} || $rel->{'key'} |
93
|
0 |
0 |
8 |
$rel->{'foreign_key'} || $rel->{'key'} |
110
|
2 |
0 |
6 |
$type eq 'one_to_many' or $type eq 'one_to_one' |
|
2 |
0 |
6 |
$type eq 'one_to_many' or $type eq 'one_to_one' or $type eq 'one_to_only' |
114
|
2 |
0 |
0 |
$rel_class->find("$pkey = ?", $self->$fkey)->fetch // $rel_class |
282
|
0 |
9 |
0 |
$params->{'pk'} || $params->{'primary_key'} || _guess('primary_key', $class) |
286
|
0 |
9 |
0 |
$params->{'fk'} || $params->{'foreign_key'} || _guess('foreign_key', $rel_class) |
319
|
0 |
11 |
0 |
$params->{'pk'} || $params->{'primary_key'} || _guess('primary_key', $class) |
323
|
0 |
11 |
0 |
$params->{'fk'} || $params->{'foreign_key'} || _guess('foreign_key', $class) |
364
|
0 |
2 |
0 |
$params->{'pk'} || $params->{'primary_key'} || _guess('primary_key', $class) |
368
|
0 |
2 |
0 |
$params->{'fk'} || $params->{'foreign_key'} || _guess('foreign_key', $class) |