| 1 | <?php |
||
| 7 | class HasMany extends HasOneOrMany |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get the results of the relationship. |
||
| 11 | * |
||
| 12 | * @param $relation |
||
| 13 | * |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | public function getResults($relation) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initialize the relation on a set of entities. |
||
| 27 | * |
||
| 28 | * @param array $entities |
||
| 29 | * @param string $relation |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function initRelation(array $entities, $relation) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Match the eagerly loaded results to their parents. |
||
| 45 | * |
||
| 46 | * @param array $entities |
||
| 47 | * @param EntityCollection $results |
||
| 48 | * @param string $relation |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function match(array $entities, EntityCollection $results, $relation) |
||
| 55 | } |
||
| 56 |