Jump to:

23358 Posts in 17874 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » SS3 - Leftjoin

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 320 Views
  • fyrebase
    Avatar
    Community Member
    7 Posts

    SS3 - Leftjoin Link to this post

    There is probably a simple answer to this, but I'm not having much luck doing a left join with the following code.

    http://www.sspaste.com/paste/show/508389db7d609

    What I am trying to achieve with the leftjoin is to only select projects who have a projectimage that's Home value is 1 (true).

    Can anyone point me in the right direction?

  • fyrebase
    Avatar
    Community Member
    7 Posts

    Re: SS3 - Leftjoin Link to this post

    Thanks to simon_w on SS IRC

    ProjectPage::get()->filter('Images.Home:ExactMatch', 1)

    320 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.