On Sun, Sep 23, 2007 at 09:31:35PM -0400, Perrin Harkins wrote:
> On 9/23/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
> > You've never done a "view all posts owned by the selected set of users"
> > link?
> >
> > This sort of thing in DBIC just becomes
> >
> > $posts_rs = $users_rs->search_related('posts');
> >
> > whereas (so far as I'm aware, please do correct me if I'm wrong) it's a bit
> > more work in RDBO.
>
> I'm not an expert on RDBO, but I believe you would need to call a
> different class (the posts class, not the users) and adjust the
> criteria you pass, e.g. change "last_name => 'Smith'" to
> "user.last_name => 'Smith'".
>
> Any set of ORM tools is going to have different unique features, and a
> full abstraction would mean giving up all of the unique features.
> However, it looked like Peter was trying to do something at a pretty
> high level where hopefully the differences don't come into play much.
So the answer is "no, I don't have any ideas about this". Sure, fair enough.
You could have said that in one line though, I was only wondering.
I'll wait and see whether Peter does.
--
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?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/