Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

[more detail added] Trying to get DBIx::Class::Result::Validation to work

by cLive ;-) (Parson)
on Sep 29, 2012 at 06:26 UTC ( #996341=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
                     } catch { $_ };
    
    print "**************** We made it to here\n";
    
  2. or download this
    Overhaul::DB::Schema::Result::track::Result: Validation failed.
    {
    ...
        'First name is required'
      ]
    }
    
  3. or download this
     at /usr/local/share/perl5/DBIx/Class/Result/Validation.pm line 214
     at /usr/local/share/perl5/DBIx/Class/Result/Validation.pm line 208
    ...
            DBIx::Class::Result::Validation::insert('Overhaul::DB::Schema:
    +:Result::track::Result=HASH(0x1e3ad98)', undef) called at Overhaul/DB
    +/Schema/Result/track/Result.pm line 62
            Overhaul::DB::Schema::Result::track::Result::insert('Overhaul:
    +:DB::Schema::Result::track::Result=HASH(0x1e3ad98)') called at /usr/s
    +hare/perl5/DBIx/Class/ResultSet.pm line 2196
            DBIx::Class::ResultSet::create('DBIx::Class::ResultSet=HASH(0x
    +1e3ad80)', 'HASH(0x1c4dcb8)') called at tmp.pl line 18
    
  4. or download this
    my $bad_result;
    eval {
    ...
                      last_name  => 'Testing', 
                    });        
    };
    
  5. or download this
     Create failed: Overhaul::DB::Schema::Result::track::Result: Validatio
    +n failed.
    {
      'first_name' => [
    ...
      ]
    }
     at /usr/local/share/perl5/DBIx/Class/Result/Validation.pm line 214
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://996341]
Approved by Athanasius
Front-paged by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-31 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls