Hi guys,
I'm quite new to flourish and experience a small problem.
Following Code fetches some database entries as an array
$this->set('todo',$this->Item->query("SELECT * FROM items"));
This code fetches exactly one entry as AN OBJECT
$this->set('todo',$this->Item->query("SELECT * FROM items WHERE id = $id"));
The fResult documentation says:
By default when retrieving rows from a result object, they are returned as associative arrays.
Any idea how I can get ONE entry as an array?