Example #1
0
 public function clippedCount($object, $external = false)
 {
     $id = $external ? (int) $object['id'] : (string) $object['_id'];
     return Model::Clipp()->where(['article_id', '=', $id])->count();
 }