我有一个带有以下代码的cakephp控制台应用程序:
$this->Message->save(
[ "Message" =>
[
"delivery_class" => null,
"user_id" => $user_id,
"messages_class" => self::MESSAGE_CLASS,
"project_id" => $project_id,
"text" => $__MessageTmp,
"attachment_id" => null,
"opened" => 0,
"is_deleted" => 0,
"created_on" => $__NOW,
"updated_on" => $__NOW,
],
]
)
此代码正在打印PDO :: quote的错误和
附近的SQL查询错误'2016年12月20日')
我认为查询中存在一些错误的数据格式,但无法找出原因。