Some more detail: user_model
file: code/Winxle::Model::User 7: 8: sub load { 9: my ( $self, $uuid ) = @_; 10: 11: my $usr = $self->resultset('Usr')->find({ uuid => $uuid }); 12: return $usr if $usr; 13: 14: Winxle::X::NotFound->throw({ 15: ident => 'no_such_usr', 16: message => "Cannot load %{class}s from uuid %{id}s", 17: class => 'Usr', 18: id => $uuid, 19: }); 20: }
and return it if we found the user