[Dbix-class] How to bring existing objects together?

Matt S Trout dbix-class at trout.me.uk
Tue Dec 13 22:47:12 CET 2005


On Tue, Dec 13, 2005 at 02:22:29PM +0100, Tilman Baumann wrote:
> I use license_id() now. Thats ok.
> 
> Nevertheless it would be nice if i can give the relation in the other
> direction. Like add_to_relname().
> Maybe the add_to_relname accessor needs to check if a parameter is of
> type Foreign::Class and and do not try to create the object but only
> link them toghether.
> I find that verry usefull and it's what i first expected.... ;)

That would be a nice feature to add; I'm currently spending what time I
have (damn paying clients keep getting in the way :) on the resultset branch
for 0.05; if anybody wants to work up a patch for this I'd certainly apply
it.

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list