my $artist = $schema->resultset('Artist')->find($artistid);
my $cd8 = $artist->find_or_create_related('cds',
{
- artist => $artistid,
title => $title,
year => 2020,
},
my $cd9 = $artist->update_or_create_related('cds',
{
- artist => $artistid,
title => $title,
year => 2021,
},