Example #1
0
 /**
  * Adds a condition on the `status` field, which should equal {@link Comment::STATUS_SPAM}.
  *
  * @param Query $query
  *
  * @return Query
  */
 protected function scope_spam(Query $query, $approved = true)
 {
     return $query->filter_by_status(Comment::STATUS_SPAM);
 }