HosipLan

Untitled

Apr 18th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    /**
  2.     * @param int advisors id
  3.     * @return array
  4.     * @final
  5.     */
  6.     final public function getClients($advisors = null) {
  7.         $fluent = $this->db->select("*")
  8.                            ->select("IFNULL(CONCAT_WS(' ', titul, prijmeni, jmeno), nazevSpolecnosti) AS klient")
  9.                            ->from(self::clientsTable);
  10.         if(is_null($advisors))
  11.             $fluent->where("poradce = %i", $advisors);  
  12.         return $fluent->OrderBy("zalozen DESC")->fetchPairs("id", "klient");            
  13.     }
  14.  
  15.  
  16. // a píše mi to chybu Unknown column 'nazevKlienta' in 'field list'
Advertisement
Add Comment
Please, Sign In to add comment