我在更新行时遇到问题,数据库中的日期格式是:Ymd H:i:s
$date ='2013-08-09';// from POST
Doctrine_Query::create()
->update( 'column z2ud' )
->set( array( 'z2ud.column' => 'value' ) )//
->where( 'z2ud.column = ?', 'value' )
->andWhere( 'DATE_FORMAT(date, "%Y-%m-%d" ) = ?', $date)
->execute();
SQL 返回:Unknown aggregate alias: "%Y-%m-%d"