Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. "I have a mysql query when i run this query into mysql platform . it works fine but i am not able to convert it cakephp style query so
  2.  
  3. My sql query is this =
  4.  
  5. "select e.id, f.max_epc_q1,f.max_epc_q2,f.epc_provider,h.email,g.id from product e
  6.  
  7. i have converted this query in to cakephp style query but it is not giving correct result
  8.  
  9. My converted query in cakephp style are =
  10.  
  11. $conditions['conditions']['AND'][] = array('Product.category_id =' => 2,'Product.country =' => 'CA');
  12. $conditions['fields'] = array('Product.id','Advertiser.id','ProductAttribute.max_epc_q1','ProductAttribute.max_epc_q2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement