atk4\data\Join::hasMany PHP Method

hasMany() public method

creates reference based on the field from the join.
public hasMany ( $model, $defaults = [] )
    public function hasMany($model, $defaults = [])
    {
        $defaults = array_merge(['our_field' => $this->id_field, 'their_field' => $this->table . '_id'], $defaults);
        return parent::hasMany($model, $defaults);
    }