Matt S Trout
dbix-class at trout.me.uk
Mon Sep 24 00:54:16 GMT 2007
On Mon, Sep 24, 2007 at 09:04:51AM +1000, brett gardner wrote:
> Is there anyway to do the following.
> I have a Respondent record, which has a one to many relationship with
> Answer records.
> I want to be able to get a set of Respondents who answered a particular
> way and I first tried do it like
> my $rs = $schema->resultset('Respondent')->search(
> Which works, but when you call search on this resultset again, ie,
> searching withing that subset, it fails eg
> $rs = $rs->search(
join=> [ 'answers', 'answers' ],
See the resultset docs for more info about how DBIC handles multiple aliases.
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
More information about the DBIx-Class