Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created October 2, 2019 14:40
Show Gist options
  • Save jjn1056/aae47f9fd4e0a7d2e55acb66ea1b8f7a to your computer and use it in GitHub Desktop.
Save jjn1056/aae47f9fd4e0a7d2e55acb66ea1b8f7a to your computer and use it in GitHub Desktop.
my $artist = Artist->new_result({
name => "John",
artist_cd_rs => [
{cd => {title=>"one"}},
{cd => {title=>"two"}},
],
});
ok $artist->custom_method_on_resultsourc;
$artist->artist_cd_rs->first->cd->title; # !!! This explodes
ok $artist->insert_or_update;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment