【发布时间】:2015-07-29 13:47:32
【问题描述】:
hello 's 在数据库中保存为hello \'s
$eventDetail = Event::find()
->joinWith('eventQuestion', true)
->joinWith('eventQuestion.questionOption', true)
->where(['=','event.id',$id])
->one();
所有包含\'的数据都应替换为'
我应该在模型中进行哪些更改来处理这个问题?
【问题讨论】: