Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getCount($Wheres = '')
 {
     if (is_numeric($Wheres)) {
         deprecated('CommentModel->getCount(int)', 'CommentModel->getCountByDiscussion()');
         return $this->getCountByDiscussion($Wheres);
     }
     return parent::getCount($Wheres);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getCount($Wheres = '')
 {
     if (is_numeric($Wheres)) {
         deprecated('DraftModel->getCount(int)', 'DraftModel->getCountByUser()');
         return $this->getCountByUser($Wheres);
     }
     return parent::getCount($Wheres);
 }