Guest User

Untitled

a guest
Dec 13th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $Result = $query->select(['LT.Title','L.Balance', 'L.Earned'])->where(['L.EmployeeID'=>Yii::$app->user->id])->from('leave L')->leftJoin('listitems LT','LT.ListItemID = L.LeaveTypeID')->all();
  2.  
  3. [1] => Array
  4. (
  5. [Title] => casual
  6. [Balance] => 12
  7. [Earned] => 12
  8. )
Add Comment
Please, Sign In to add comment