I have an issue understanding pretty well the Relationships, let's go to the point

I have 3 tables, with its proper models

> 
> 
> ```
> receipt
>  - id
>  - date
> 
> items_sold
>  - id
>  - receipt_id
>  - item_id
> 
> items
>  - id
>  - name
> 
> ```
> 
> 

The problem I have is that receipt "has many" items through items\_sold, but I can't use "hasManyThrough" because eloquent use the wrong "id" of "items\_sold", even if I put manually the keys

```
class Receipt extends Eloquent {

    public function items()
    {
        return $this->hasManyThrough('Items', 'ItemsSold', 'receipt_id', 'id');
    }

}

```

There is no way to do it in through this way, but I can find an Relationship method with eloquent that can help me with this case