Request List:
$this->paginate = array(
'conditions' => array(
'Product.original_price <=' => 77
),
'recursive' => 2,
'paramType' => 'querystring',
'limit' => '25',
'maxLimit' => 100,
);
$records = $this->paginate('Product');
CakePHP appends a single quote to original_price 77
, so it causes problems with number matching.
Cakephp request output:
............LEFT JOIN `admin_mytab`.`seller_categories` AS `Seller_3` ON (`Product`.`seller_3` = `Seller_3`.`id`) WHERE `Product`.`original_price` <= '77' LIMIT 25
MySQL original_price
is a field varchar
. 77
in quotation marks that cannot match the mysql field.
Any help would be appreciated.
source
share