0 votes

When exporting the models of a polymorphic association the property name is wrong. The skipper internal EntityAlias is correct

abstract class AbstractCompany extends Model
//the relation
public function documents()
return $this->morphMany('\App\Models\Document', 'documentable', 'documentabletype', 'documentableid');

//the wrong type hint
* @property \Illuminate\Database\Eloquent\Collection $company

//the right type hint should be
* @property \Illuminate\Database\Eloquent\Collection $documents

in Solved by (120 points)
recategorized by

Send me please a demo project where we can simulate this issue to [email protected]
Thank you

1 Answer

0 votes
by Skipper developer (141k points)