SupportsPartialRelations.php 781 B

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