Exemple #1
0
 /**
  * Show if logged in user is online
  * @param  [type] $query [description]
  * @return [type]        [description]
  */
 public function scopeloggedInUser($query)
 {
     return $query->select('user_id')->get();
 }
 /**
  * [doSelectJoinPerson description]
  * @param  [type] $query [description]
  * @return [type]        [description]
  */
 public static function doSelectJoinExposition($query)
 {
     $rootAlias = $query->getRootAlias();
     return $query->select($rootAlias . '.*, e.libelle')->leftJoin($rootAlias . '.Exposition e');
 }