Forked from LubosRemplik/gist:f53f860d9f9700e0ed006eb4350d49db
Created
January 19, 2017 12:01
-
-
Save Spriz/055fc69e2c235c5b89d3f9dec2ad8b55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query->leftJoinWith('TicketExecutors') | |
->where(['TicketExecutors.id' => $options['request']['restrictByUserId']]) | |
->leftJoinWith('TicketOwners') | |
->orWhere(['TicketOwners.id' => $options['request']['restrictByUserId']]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment