ОтложенноеСвязьHasThrough
класс PendingHasThroughRelationship (Просмотреть исходный код)
Свойства
| protected Модель | $rootModel | Модель, на которой существует отношение. | |
| protected HasMany|HasOne | $localRelationship | Локальное отношение. |
Методы
| __construct(Модель $rootModel, HasMany|HasOne $localRelationship)
Создать отложенное отношение has-many-through или has-one-through. | ||
| HasManyThrough|HasOneThrough | has($callback)
Определить удалённое отношение, которое имеет эта модель. | |
| mixed | __call(string $method, array $parameters)
Обработка динамических вызовов метода в модели. |
Подробное описание
__construct(Модель $rootModel, HasMany|HasOne $localRelationship)
Создать отложенное отношение has-many-through или has-one-through.
HasManyThrough|HasOneThrough has($callback)
Определить удалённое отношение, которое имеет эта модель.
mixed __call(string $method, array $parameters)
Обработка динамических вызовов метода в модели.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/PendingHasThroughRelationship.html