20220717
This commit is contained in:
30
vendor/illuminate/contracts/Database/Eloquent/SupportsPartialRelations.php
vendored
Normal file
30
vendor/illuminate/contracts/Database/Eloquent/SupportsPartialRelations.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Database\Eloquent;
|
||||
|
||||
interface SupportsPartialRelations
|
||||
{
|
||||
/**
|
||||
* Indicate that the relation is a single result of a larger one-to-many relationship.
|
||||
*
|
||||
* @param string|null $column
|
||||
* @param string|\Closure|null $aggregate
|
||||
* @param string $relation
|
||||
* @return $this
|
||||
*/
|
||||
public function ofMany($column = 'id', $aggregate = 'MAX', $relation = null);
|
||||
|
||||
/**
|
||||
* Determine whether the relationship is a one-of-many relationship.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isOneOfMany();
|
||||
|
||||
/**
|
||||
* Get the one of many inner join subselect query builder instance.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder|void
|
||||
*/
|
||||
public function getOneOfManySubQuery();
|
||||
}
|
Reference in New Issue
Block a user