[Dbix-class] Updating part of a composite key
Matt S Trout
dbix-class at trout.me.uk
Tue May 8 18:56:47 GMT 2007
On Tue, Mar 06, 2007 at 10:26:48AM -0000, John Ramsden-Developer wrote:
>
> I have a table 'broadcast', with a foreign key 'pid' to a table
> 'version',
> and with primary key a composite of 'pid' and 'imi', i.e.:
>
> broadcast: version:
>
> pid } broadcast -----------> pid } version
> imi } key 0 key 0
> ::: :::
>
> I want to write a test script that uses DBIx::Class to set up some
> records, represented by $broadcast, $version_1, and $version_2,
> such that initially $broadcast links to $version_1 and then is
> changed by the following to link to $broadcast_2:
>
> $broadcast->version($version_2);
>
> However, when I run the test it displays the following error
> (referring to the line containing this call):
>
> Can't update Broadcast=HASH(0x2d72c14): row not found at
> t/unit/misc/hack.t
Should be fixed in the latest release, please verify.
--
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