Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problem with ORM
  • Hi, i'm using this code (based on the docs):

    $data['bets'] = Model_Bet::find('all', array(
    'select' => array('id', 'userid', 'won', 'time'),
    'where' => array('userid', 1)

    And I receive this error:

    Fuel\Core\PhpErrorException [ 4096 ]: Argument 1 passed to Orm\Query::_parse_where_array() must be of the type array, string given, called in C:\xampp\htdocs\dota2lottery\fuel\packages\orm\classes\query.php on line 566 and defined

    I use fuel since 1.0, and every update I lose myself, perhaps be accustomed to the old model, can someone help me? Thank you.
  • Ok!

    $data['bets'] = Model_Bet::find('all', array(
    'where' => array(array('userid', 1))

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion