awssat /
laravel-kabsa
| 1 | <?php |
||||
| 2 | |||||
| 3 | |||||
| 4 | namespace Awssat\Kabsa\Traits; |
||||
| 5 | |||||
| 6 | use Awssat\Kabsa\Relationships\BelongsToCached; |
||||
| 7 | use Awssat\Kabsa\Relationships\HasManyCached; |
||||
| 8 | |||||
| 9 | trait KabsaRelationships |
||||
| 10 | { |
||||
| 11 | public function belongsToKabsaRow($related, $foreignKey = null, $ownerKey = null) |
||||
| 12 | { |
||||
| 13 | return new BelongsToCached($related, $this, $foreignKey, $ownerKey); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 14 | } |
||||
| 15 | |||||
| 16 | public function hasManyKabsaRows($related, $foreignKey = null, $ownerKey = null) |
||||
| 17 | { |
||||
| 18 | return new HasManyCached($related, $this, $foreignKey, $ownerKey); |
||||
|
0 ignored issues
–
show
$this of type Awssat\Kabsa\Traits\KabsaRelationships is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $parent of Awssat\Kabsa\Relationshi...nyCached::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 19 | } |
||||
| 20 | } |