[Dbix-class] using HasMany with object references
jguenther at gmail.com
Tue Dec 6 00:28:19 CET 2005
On 12/2/05, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Assuming the other side has a belongs_to set up, just calling
> should do the trick.
The class does have belongs_to set up, but there doesn't seem to be a method
Here's my setup code:
In the class Treatment: (which has_many Phases)
__PACKAGE__->has_many('phases' => 'SaskSAGE::Model::DBIC::Phase',
In the class Phase: (which belongs_to Treatment)
I'm trying to add a phase to a treatment by calling
but this method does not exist.
> Matt S Trout Offering custom development, consultancy and
> Technical Director contracts for Catalyst, DBIx::Class and BAST.
> Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more
> + Help us build a better perl ORM:
> http://dbix-class.shadowcatsystems.co.uk/ +
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dbix-class