Skip to content

Instantly share code, notes, and snippets.

@LubosRemplik
Created January 19, 2017 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LubosRemplik/f53f860d9f9700e0ed006eb4350d49db to your computer and use it in GitHub Desktop.
Save LubosRemplik/f53f860d9f9700e0ed006eb4350d49db to your computer and use it in GitHub Desktop.
$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