TeamworkTeamTrait owner() method should be a BelongsTo relationship
spriggsey opened this issue · 1 comments
spriggsey commented
Currently the relationship of the Team
model is using the incorrect join.
The owner()
relationship on the Team
model should be a belongsTo()
relationship as the Team
model has the owner_id
column.
The original code does work but with implementation of Laravel Nova it becomes an issue as they require a BelongsTo
join to properly function.
teamwork/src/Mpociot/Teamwork/Traits/TeamworkTeamTrait.php
Lines 35 to 46 in 4de34f5
okaufmann commented
This should be fixed now.