in what circumstances  c->model would return  undef. when the DB and schema exist? Schema
package AddressBook::Schema::AddressDB::Result::Address; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE use strict; use warnings; use base 'DBIx::Class::Core'; __PACKAGE__->load_components("InflateColumn::DateTime"); =head1 NAME AddressBook::Schema::AddressDB::Result::Address =cut __PACKAGE__->table("addresses"); =head1 ACCESSORS =head2 id data_type: 'integer' is_nullable: 0 =head2 person data_type: 'integer' is_nullable: 0 =head2 location data_type: 'varchar' is_nullable: 1 size: 20 =head2 postal data_type: 'text' is_nullable: 1 =head2 phone data_type: 'varchar' is_nullable: 1 size: 20 =head2 email data_type: 'varchar' is_nullable: 1 size: 100 =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_nullable => 0 }, "person", { data_type => "integer", is_nullable => 0 }, "location", { data_type => "varchar", is_nullable => 1, size => 20 }, "postal", { data_type => "text", is_nullable => 1 }, "phone", { data_type => "varchar", is_nullable => 1, size => 20 }, "email", { data_type => "varchar", is_nullable => 1, size => 100 }, ); __PACKAGE__->set_primary_key("id"); __PACKAGE__->belongs_to( person => 'AddressBook::Schema::AddressDB::Result::People'); # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-01-04 14:50:1 +5 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LXbQtPHwvP3E1JP8yppNhQ # You can replace this text with custom content, and it will be preser +ved on regeneration 1;

In reply to Re^7: Can't call method "find" on an undefined value by Anonymous Monk
in thread Can't call method "find" on an undefined value by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.