I have a table (product_shoppingcart
) with 4 columns :
id, product_id, shoppingcart_id, product_quantity.
I'm using Kohana's ORM.
I want to write a search query which returns all the rows where the shoppingcart_id
column contains 1 (for example).
I already tried:
$arr = ORM::factory('product_shoppingcart')->where('shoppingcart_id',$shoppingcartID)->find_all();
but that doesn't work.
Can anyone please help me out?