Created
January 19, 2017 11:57
-
-
Save LubosRemplik/f53f860d9f9700e0ed006eb4350d49db 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'); | |
$query->where(['TicketExecutors.id' => $options['request']['restrictByUserId']]); | |
$query->leftJoinWith('TicketOwners'); | |
$query->orWhere(['TicketOwners.id' => $options['request']['restrictByUserId']]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment