[Catalyst] has_many but no left join?!

Stephen Shorrock stephen.shorrock at gmail.com
Tue Jun 18 18:19:35 GMT 2013


I think Robert has cracked it, but why prefetch?
On Jun 18, 2013 7:14 PM, "Francisco Obispo" <fobispo at isc.org> wrote:

> Again,
>
> I think you want to use 'prefetch'.
>
>
>
> On Jun 18, 2013, at 11:09 AM, Robert Wohlfarth <rbwohlfarth at gmail.com>
> wrote:
>
> > Ah, well then I answered the wrong question :)
> >
> > How about this code?
> > $c->model('MyApp::IndexStatus')->search({'old_statuses.id' =3D>
> undef},{join=3D>'old_statuses'})
> >
> >
>
> Francisco Obispo
> Director of Applications and Services - ISC
> email: fobispo at isc.org
> Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
> PGP KeyID =3D B38DB1BE
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130618/df909=
c76/attachment.htm


More information about the Catalyst mailing list