I am trying:
$result = $this->get($id)->with('relationtable');
the workaround I have:
$result = $this->where(['id' =>$id])->with('relationtable');
But it gives me an array with 1 record, where the other option gives me an array with record-fields
Why doesn't get have the with-option?
I am trying:
$result = $this->get($id)->with('relationtable');
the workaround I have:$result = $this->where(['id' =>$id])->with('relationtable');
But it gives me an array with 1 record, where the other option gives me an array with record-fields Why doesn't get have the with-option?