Php Symfony应用程序中奇怪的数据库项排列

Php Symfony应用程序中奇怪的数据库项排列,php,symfony1,Php,Symfony1,我在跟踪Symfony的消息 完成第7天的分类链接后,Sensio lab Web developer项回到后面(正如您在教程的图片中看到的,位于编程分类的顶部) 该项的id为1,因此我不太明白它为什么会返回到后面(它大约成为列表的20号(在教程中,该项不会移动其位置) 有没有解决这一安排问题的建议 (来源:)我花了大约3个小时比较这些文件,我发现了这个: SVN具有以下特点: $q->andWhere($alias . '.expires_at > ?', date('Y-m-d

我在跟踪Symfony的消息

完成第7天的分类链接后,Sensio lab Web developer项回到后面(正如您在教程的图片中看到的,位于编程分类的顶部)

该项的id为1,因此我不太明白它为什么会返回到后面(它大约成为列表的20号(在教程中,该项不会移动其位置)

有没有解决这一安排问题的建议



(来源:)

我花了大约3个小时比较这些文件,我发现了这个:

SVN具有以下特点:

$q->andWhere($alias . '.expires_at > ?', date('Y-m-d h:i:s', time()))
  ->addOrderBy($alias . '.expires_at DESC');
$q->andWhere($alias . '.expires_at > ?', date('Y-m-d H:i:s', time()))
  ->addOrderBy($alias . '.created_at DESC');
教程文件包含以下内容:

$q->andWhere($alias . '.expires_at > ?', date('Y-m-d h:i:s', time()))
  ->addOrderBy($alias . '.expires_at DESC');
$q->andWhere($alias . '.expires_at > ?', date('Y-m-d H:i:s', time()))
  ->addOrderBy($alias . '.created_at DESC');
这是教程中的错误吗