-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
コメントに書いてありますが、issueにもあげときます。
| foreach ($contents as $i => $content) { |
ContentCommentsプラグインにもあげたのですが、件数の取得処理が厄介な感じです。
NetCommons3/ContentComments#2
CakePHPだと、counterCacheという仕組みが提供されています。
http://book.cakephp.org/2.0/ja/models/associations-linking-models-together.html#countercache-count
これだと、テーブルにフィールド追加になります。
状態ごとに件数を取得することを考えると、counterCacheはきびしいと思ったのですが、
状態ごとの件数をフィールドにもつと行けそうです。
案としてあげときます。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels