页: 1 fetch model don t work within PDOStatement:fetch (
but in the manual 它说,你可以使用<代码>。 PDO:FETCH_INTO with PDOStatement:fetch()
。
I was trying to do: $query->fetch( PDO::FETCH_INTO, $user );
This returns: PDOStatement::fetch() expects parameter 2 to be long, object given
这并不意味着手册是误导吗? 如果使用<代码>PDO:FETCH_INTO的话,是怎样的?