[Dbix-class] using HasMany with object references

Justin Guenther jguenther at gmail.com
Sat Dec 3 02:04:41 CET 2005


I'm trying to use DBIx::Class to store some existing classes in a database.
I think I have all my relationships set up correctly, and I ran into an
issue with HasMany's add_to_* methods. It is expecting a hashref of values
to create the new object, but the way my existing classes are set up it
would be much easier to simply pass it an already-created object reference.
Is there a way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20051202/608a50b0/attachment.htm


More information about the Dbix-class mailing list