atk4\data\Join::weakJoinModel PHP Method

weakJoinModel() public method

Joins with the primary table of the model and then import all of the data into our model.
public weakJoinModel ( $model, $fields = [] )
    public function weakJoinModel($model, $fields = [])
    {
        if (!is_object($model)) {
            $model = $this->owner->connection->add($model);
        }
        $j = $this->join($model->table);
        $j->importModel($model);
        return $j;
    }