$view->set_global('donations', Model_Donation::find(array( 'select' => array('id', 'amount', 'project_id', 'user_id'), 'where' => array('project_id', '=', 1), ))) ;
Fuel\Core\Database_Exception [ Error ]: SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s) with query: "SELECT `t0`. `id` AS `t0_c0`, `t0`.`amount` AS `t0_c1`, `t0`.`project_id` AS `t0_c2`, `t0`.`user_id` AS `t0_c3`, `t0`.`created_at` AS `t0_c4`, `t0`.`updated_at` AS `t0_c5` FROM `donations` AS `t0` WHERE `t0`.`id` = ('id', 'amount', 'project_id') LIMIT 1
$view->set_global('donations', Model_Donation::find(array( 'select' => array('id', 'amount', 'project_id'), 'where' => array('project_id', '=', $id), ))) ;
$view->set_global('donations', Model_Donation::find('first', array( 'select' => array('id', 'amount', 'project_id', 'user_id'), 'where' => array('project_id', '=', 1), ))) ;
Model_Donation::find($id, array('related' => array('project')))
It looks like you're new here. If you want to get involved, click one of these buttons!