Skip to content

Commit

Permalink
fixed sort order and add index data (refs #2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
nise-nabe committed May 17, 2011
1 parent fa5f5b4 commit a4a7d11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/doctrine/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ IntroFriend:
fields: [created_at]
member_id_from_member_id_to:
fields: [member_id_from, member_id_to]
member_id_to_updated_at:
fields: [member_id_to, updated_at]
2 changes: 1 addition & 1 deletion lib/model/doctrine/PluginIntroFriendTable.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getListQuery($memberIdTo)
{
return Doctrine::getTable('IntroFriend')->createQuery()
->where('member_id_to = ?', $memberIdTo)
->orderBy('id');
->orderBy('updated_at DESC');
}

/**
Expand Down

0 comments on commit a4a7d11

Please sign in to comment.