api/laravel/Database/Eloquent/Relations/HasMany.yaml
2024-09-26 02:03:21 -07:00

60 lines
1.4 KiB
YAML

name: HasMany
class_comment: '# * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
# * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
# *
# * @extends \Illuminate\Database\Eloquent\Relations\HasOneOrMany<TRelatedModel,
TDeclaringModel, \Illuminate\Database\Eloquent\Collection<int, TRelatedModel>>'
dependencies:
- name: Collection
type: class
source: Illuminate\Database\Eloquent\Collection
properties: []
methods:
- name: one
visibility: public
parameters: []
comment: '# * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
# * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
# *
# * @extends \Illuminate\Database\Eloquent\Relations\HasOneOrMany<TRelatedModel,
TDeclaringModel, \Illuminate\Database\Eloquent\Collection<int, TRelatedModel>>
# */
# class HasMany extends HasOneOrMany
# {
# /**
# * Convert the relationship to a "has one" relationship.
# *
# * @return \Illuminate\Database\Eloquent\Relations\HasOne<TRelatedModel, TDeclaringModel>'
- name: getResults
visibility: public
parameters: []
comment: '# @inheritDoc'
- name: initRelation
visibility: public
parameters:
- name: models
- name: relation
comment: '# @inheritDoc'
- name: match
visibility: public
parameters:
- name: models
- name: results
- name: relation
comment: '# @inheritDoc'
traits:
- Illuminate\Database\Eloquent\Collection
interfaces: []