return $this->hasMany('AppComment', 'foreign_key'); return $this->hasMany('AppComment', 'foreign_key', 'local_key');