Skip to content

Commit

Permalink
Renamed forumBundle entity field names for better SQL naming conventi…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
reecefowell committed Jun 25, 2012
1 parent a1f5961 commit c08716d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Manager/PostManager.php
Expand Up @@ -145,7 +145,7 @@ public function bulkSoftDelete($posts, $user)
}
}

if ($topic->getReplyCount() < 1 && $topic->getFirstPost()->getId() == $post->getId())
if ($topic->getCachedReplyCount() < 1 && $topic->getFirstPost()->getId() == $post->getId())
{
$topic->setIsDeleted(true);
$topic->setDeletedBy($user);
Expand Down Expand Up @@ -201,7 +201,7 @@ public function bulkRestore($posts)
}
}

if ($topic->getReplyCount() < 1 && $topic->getFirstPost()->getId() == $post->getId())
if ($topic->getCachedReplyCount() < 1 && $topic->getFirstPost()->getId() == $post->getId())
{
$topic->setIsDeleted(false);
$topic->setDeletedBy(null);
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Post/show_locked.html.twig
Expand Up @@ -81,8 +81,8 @@

<td class="left">
{% if post.getTopic %}
<span class="label label-info">{{ post.getTopic.getReplyCount }}&nbsp;{{ 'board.table.head.reply_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ post.getTopic.getViewCount }}&nbsp;{{ 'board.table.head.view_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ post.getTopic.getCachedReplyCount }}&nbsp;{{ 'board.table.head.reply_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ post.getTopic.getCachedViewCount }}&nbsp;{{ 'board.table.head.view_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<a href="{{ path('cc_forum_topic_show', {'topic_id': post.getTopic.getId }) }}" title="{{ post.getTopic.getTitle }}">{{ truncDot(post.getTopic.getTitle |capitalize, param('ccdn_forum_moderator.post.show_locked.topic_title_truncate')) }}</a>
{% endif %}
</td>
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Topic/show_closed.html.twig
Expand Up @@ -75,8 +75,8 @@
</td>

<td class="left">
<span class="label label-info">{{ topic.getReplyCount }}&nbsp;{{ 'board.table.head.reply_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ topic.getViewCount }}&nbsp;{{ 'board.table.head.view_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ topic.getCachedReplyCount }}&nbsp;{{ 'board.table.head.reply_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<span class="label label-info">{{ topic.getCachedViewCount }}&nbsp;{{ 'board.table.head.view_count' | trans({}, 'CCDNForumForumBundle') }}</span>&nbsp;
<a class="topic_link" href="{{ path('cc_forum_topic_show', {'topic_id': topic.getId }) }}" title="{{ topic.getTitle }}">{{ truncDot(topic.getTitle |capitalize, param('ccdn_forum_moderator.topic.show_closed.topic_title_truncate')) }}</a>
</td>

Expand Down

0 comments on commit c08716d

Please sign in to comment.