[Dbix-class] create() with has_one related object broken
Matt S Trout
dbix-class at trout.me.uk
Mon Jun 8 19:29:56 GMT 2009
On Thu, Jun 04, 2009 at 03:38:21PM +0200, Hermida, Leandro wrote:
> If I try like the documentation says to do in create() with a has_one
> relationship, with an arrayref of hashrefs:
arrayref is for has_many.
For might_have/belongs_to/has_one there's only one so you just pass a
hashref.
If the docs don't make this clear, please supply a patch :)
--
Matt S Trout Catalyst and DBIx::Class consultancy with a clue
Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/
Shadowcat Systems Limited
mst (@) shadowcat.co.uk http://shadowcat.co.uk/blog/matt-s-trout/
More information about the DBIx-Class
mailing list