You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a competition and I want to get its season's id I need to do
$competition->getSeason()->getId();
But that queries the database to get the Season model, which is unnecessary, as the Competition model already has the season's id. I should be able to do
$competition->getSeasonId();
which under the hood returns $competition->season_id;
The text was updated successfully, but these errors were encountered:
If I have a competition and I want to get its season's id I need to do
But that queries the database to get the Season model, which is unnecessary, as the Competition model already has the season's id. I should be able to do
which under the hood returns
$competition->season_id
;The text was updated successfully, but these errors were encountered: