On Sun, Jun 17, 2007 at 11:50:38PM -0500, Robert Boone wrote:
> I was just following the tutorial but testdb.pl was dieing with:
>    Can't call method "name" on an undefined value at testdb.pl line 107.
> 
> I looked in the database and saw this:
> 
> sqlite> select * from track;
> 1|MyDatabase::Main::Cd=HASH(0x87a7f70)|The Way I Am
> 2|MyDatabase::Main::Cd=HASH(0x874d888)|Stan
> 3|MyDatabase::Main::Cd=HASH(0x87a7f88)|Billie Jean
> 4|MyDatabase::Main::Cd=HASH(0x87a7cf4)|Leave Me Alone
> 5|MyDatabase::Main::Cd=HASH(0x874d948)|Smooth Criminal
> 6|MyDatabase::Main::Cd=HASH(0x87a7b2c)|Beat It
> 7|MyDatabase::Main::Cd=HASH(0x86e6dd8)|Dirty Diana
> 
> 
> Should the ResultSet stringifying to the primary key or will something
> like this patch be applied?

Neither. DBIC handles deflating related objects automatically; could you
tell us what version you've got? (perl -MDBIx::Class\ 999)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/

Reply via email to