@@ 177-181 (lines=5) @@ | ||
174 | return $this; |
|
175 | } |
|
176 | ||
177 | if (is_string($includes)) { |
|
178 | $includes = array_map(function ($value) { |
|
179 | return trim($value); |
|
180 | }, explode(',', $includes)); |
|
181 | } |
|
182 | ||
183 | $this->includes = array_merge($this->includes, (array)$includes); |
|
184 | $this->manager->parseIncludes($this->includes); |
@@ 20-24 (lines=5) @@ | ||
17 | */ |
|
18 | public function getEagerLoads($requestedIncludes) |
|
19 | { |
|
20 | if (is_string($requestedIncludes)) { |
|
21 | $requestedIncludes = array_map(function ($value) { |
|
22 | return trim($value); |
|
23 | }, explode(',', $requestedIncludes)); |
|
24 | } |
|
25 | ||
26 | $availableRequestedIncludes = array_intersect($this->getAvailableIncludes(), $requestedIncludes); |
|
27 | $defaultIncludes = $this->getDefaultIncludes(); |