I have Users, Meetings and MeetingMails. User has a relation with Meeting and Meeting has a relation with MeetingMail. I defined the relation like this:
public function meetingMails(): HasManyDeep {
return $this->hasManyDeepFromRelations(
$this->meetings(),
(new Meeting())->meetingMails()
);
}
When is use $user->meetingMails to get the MeetingMails I only get the first MeetingMail. When I use $user->meetingMails()->get() I get all MeetingMails as excpected. Shouldn't these two code snippets do the same?
I have Users, Meetings and MeetingMails. User has a relation with Meeting and Meeting has a relation with MeetingMail. I defined the relation like this:
When is use
$user->meetingMails
to get the MeetingMails I only get the first MeetingMail. When I use$user->meetingMails()->get()
I get all MeetingMails as excpected. Shouldn't these two code snippets do the same?