Example #1
0
 public function graphs($id)
 {
     if (is_object($id)) {
         $id = (string) $id;
     }
     return Model::GraphLink()->where(['article_id', '=', $id])->where(['article_id', '=', new \MongoId($id)], 'OR')->models();
 }