deflate error when creating is_a related classes from cgi

[prev] [thread] [next] [Date index for 2005/02/16]

From: Peter Speltz
Subject: deflate error when creating is_a related classes from cgi
Date: 21:04 on 16 Feb 2005
Hi. I have two is_a related  classes -- InternetService and Dialup.
InternetService has_a foreign key mapping to the Service class which tells 
type, billing price, etc of service. 

The CDBI setup is this:

Dialup->columns('Primary'=> qw/isrvc/);
Dialup->is_a(isrvc => "InternetService");
InternetService->has_a(service_id=> "Service") # what type of service plan is
it
Dialup->has_a(service_id => "Service")         # inherits service_id

The create dialup form has a service_id in it. When i call 
Dialup->create_from_cgi($h) Maypole throws this exception:

Can't deflate service_id: DBIx::ContextualFetch::st=HASH(0x94e6ea4) is not a
BttlBks::Service at
/usr/lib/perl5/site_perl/5.8.5/Class/DBI/Relationship/HasA.pm line 87

But the rows in Dialup and InternetService tables are created fine without
errors including the service_id key.

Anyone have any ideas what/where the problem is?  I'm going to start browsing
IsA.pm and see what I find. 

thanks


=====
pjs


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

deflate error when creating is_a related classes from cgi
Peter Speltz 21:04 on 16 Feb 2005

Generated at 08:54 on 14 Mar 2005 by mariachi v0.52