[Dbix-class] Relations on non in_storage rows (my todays gotcha)
Matt S Trout
dbix-class at trout.me.uk
Sun May 11 15:34:55 BST 2008
On Sun, May 11, 2008 at 12:06:54PM +0200, Zbigniew Lukasiak wrote:
> If you have a new object, not yet in the database, like:
>
> $new_cd = $schema->resultset("CD")->new( {} );
>
> Then if you call $new_cd->artist - this will return a first artist in
> the 'artist' table.
That's a bug, but the test we were given for it didn't work. Better test
case welcome and we can fix it.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list