在我的 Zend Framework 应用程序中,我收到此错误:
Catchable fatal error: Object of class User could not be converted to string in /home/trengine/domains/completeset.us/application/models/User.php on line 121
第 121 行是这个 mySql 查询中的 where 子句:
$query = "SELECT first,
last,
email,
gender,
user_type,
country,
state,
province,
city,
DATE_FORMAT(birthday, '%m/%d/%Y') AS birthday,
facebook_id
FROM users
WHERE user_id = '{$this->id}'";