public function identity($tid=0) {
return $this->belongsToMany('MIdentity', 'jf_task_identity', 'iid', 'tid')->where('pivot.tid', 9);
}报错
[10501] PDOException in Connection.php line 399
SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'pivot'