I am failing to understand what the error means in this case:
Basically i just wanted to try and use different fetch modes - ModelAbstractObject.php
line 22: public function find($id)
line 23: {
line 24: $sql = "SELECT * FROM $this->table WHERE id=:id";
line 25: $sth = $this->dbh->prepare($sql));
line 26: $sth->bindParam(':id', $id, PDO::PARAM_INT);
line 27: $sth->setFetchMode(PDO::FETCH_OBJ);
line 28: $sth->execute();
line 29: return $sth->fetchAll();
line 30: }
Error:
Catchable fatal error: Object of class Closure could not be converted to string in core/ModelAbstractObject.php on line 28