File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
"symfony/property-access" : " ^2.7 || ^3.0" ,
23
23
"symfony/property-info" : " ^3.1" ,
24
24
"symfony/serializer" : " ^3.1" ,
25
- "willdurand/negotiation" : " ^2.0.3"
25
+ "willdurand/negotiation" : " ^2.0.3 <2.3 "
26
26
},
27
27
"require-dev" : {
28
28
"behat/behat" : " ^3.1" ,
Original file line number Diff line number Diff line change 13
13
14
14
namespace ApiPlatform \Core \Bridge \Doctrine \Orm \Extension ;
15
15
16
+ use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \EagerLoadingTrait ;
16
17
use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \QueryNameGeneratorInterface ;
17
- use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \ShouldEagerLoad ;
18
18
use ApiPlatform \Core \Exception \PropertyNotFoundException ;
19
19
use ApiPlatform \Core \Exception \ResourceClassNotFoundException ;
20
20
use ApiPlatform \Core \Exception \RuntimeException ;
36
36
*/
37
37
final class EagerLoadingExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
38
38
{
39
- use ShouldEagerLoad ;
39
+ use EagerLoadingTrait ;
40
40
41
41
private $ propertyNameCollectionFactory ;
42
42
private $ propertyMetadataFactory ;
Original file line number Diff line number Diff line change 13
13
14
14
namespace ApiPlatform \Core \Bridge \Doctrine \Orm \Extension ;
15
15
16
+ use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \EagerLoadingTrait ;
16
17
use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \QueryNameGeneratorInterface ;
17
- use ApiPlatform \Core \Bridge \Doctrine \Orm \Util \ShouldEagerLoad ;
18
18
use ApiPlatform \Core \Metadata \Resource \Factory \ResourceMetadataFactoryInterface ;
19
19
use Doctrine \ORM \Query \Expr \Join ;
20
20
use Doctrine \ORM \QueryBuilder ;
25
25
*/
26
26
final class FilterEagerLoadingExtension implements QueryCollectionExtensionInterface
27
27
{
28
- use ShouldEagerLoad ;
28
+ use EagerLoadingTrait ;
29
29
30
30
public function __construct (ResourceMetadataFactoryInterface $ resourceMetadataFactory , $ forceEager = true )
31
31
{
Original file line number Diff line number Diff line change 21
21
*
22
22
* @internal
23
23
*/
24
- trait ShouldEagerLoad
24
+ trait EagerLoadingTrait
25
25
{
26
26
private $ forceEager ;
27
27
private $ resourceMetadataFactory ;
You can’t perform that action at this time.
0 commit comments