--- Matt S Trout <[EMAIL PROTECTED]> wrote: > On Tue, May 22, 2007 at 08:41:30AM -0700, John > Napiorkowski wrote: > > Hi, > > > > I'm trying to figure out the easiest way to > determine > > the type of relationship between two resultsets. > > Basically I'd like to find out if it's a > parent-child > > type relationship, where the child needs PK's from > the > > parent or if it's a object-attribute type, where > the > > primary object takes FK's from the attribute > object. > > > > I can see a couple of ways using > ->relationship_info, > > but wanted to hear if there is a 'canonical' and > > simple way for this. > > The SQLT parser/producer stuff has code to handle > this - maybe worth factoring > it back into ResultSource?
I'll look at that. I think it would be valuable for people that need more metadata for code generators, CRUD style or otherwise. Thanks, --john > -- > Matt S Trout Need help with your > Catalyst or DBIx::Class project? > Technical Director Want a managed development > or deployment platform? > Shadowcat Systems Ltd. Contact mst (at) > shadowcatsystems.co.uk for a quote > http://chainsawblues.vox.com/ > http://www.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/ > Searchable Archive: > http://www.mail-archive.com/[email protected]/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ 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/ Searchable Archive: http://www.mail-archive.com/[email protected]/
