[Dbix-class] Possible problem in DBIx::Class::Manual::Example
Matt S Trout
dbix-class at trout.me.uk
Mon Jun 18 14:34:54 GMT 2007
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/
More information about the Dbix-class
mailing list