[Dbix-class] Creating a new related object on another new object
(with a belongs_to relationship)
Matt S Trout
dbix-class at trout.me.uk
Wed Sep 3 16:54:21 BST 2008
On Sat, Aug 30, 2008 at 11:12:48AM +0200, Zbigniew Lukasiak wrote:
> Hi,
>
> It looks that now it is not possible to create a new object from
> another new one. I don't know if that is big deal - and I can adapt
> my code to that - but just FYI:
>
> $undef_artist_cd->related_resultset('artist')->new({name => 'foo'});
>
> (added in t/66relationship line 216)
>
> this now fails with "Can't abstract implicit construct, condition not a hash".
That's because fixing another bug has exposed inconsistent things we're
doing.
My plan is to fix $undef_artist_cds->new_related
The long form that you propose I don't know if can work sanely.
--
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