blob: c82125aa0c10de8b6bd13bf641a79a416bc86f4d [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Database\Eloquent;
4
5interface SupportsPartialRelations
6{
7 /**
8 * Indicate that the relation is a single result of a larger one-to-many relationship.
9 *
10 * @param string|null $column
11 * @param string|\Closure|null $aggregate
12 * @param string $relation
13 * @return $this
14 */
15 public function ofMany($column = 'id', $aggregate = 'MAX', $relation = null);
16
17 /**
18 * Determine whether the relationship is a one-of-many relationship.
19 *
20 * @return bool
21 */
22 public function isOneOfMany();
23
24 /**
25 * Get the one of many inner join subselect query builder instance.
26 *
27 * @return \Illuminate\Database\Eloquent\Builder|void
28 */
29 public function getOneOfManySubQuery();
30}