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
HasOneOrMany has only a single template parameter TRelatedModel which is bound to the model class which the relation points to. However, HasOneOrMany also uses TRelatedModel as the type for the model class which declares the relation.
HasOneOrMany
has only a single template parameterTRelatedModel
which is bound to the model class which the relation points to. However,HasOneOrMany
also usesTRelatedModel
as the type for the model class which declares the relation.https://github.com/nunomaduro/larastan/blob/ccdd599c464f9de6983a8d5e0f36daaf324b646f/stubs/HasOneOrMany.stub#L11-L20
The declaring model model (or parent or owning model) is not the same as the related model.
Originally posted by @nagmat84 in #1275 (comment)
The text was updated successfully, but these errors were encountered: