Skip to content

Commit 8a579ba

Browse files
committed
Merge branch '2.0'
2 parents 20bd583 + d696aa5 commit 8a579ba

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/property-access": "^2.7 || ^3.0",
2323
"symfony/property-info": "^3.1",
2424
"symfony/serializer": "^3.1",
25-
"willdurand/negotiation": "^2.0.3"
25+
"willdurand/negotiation": "^2.0.3 <2.3"
2626
},
2727
"require-dev": {
2828
"behat/behat": "^3.1",

src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension;
1515

16+
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\EagerLoadingTrait;
1617
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\ShouldEagerLoad;
1818
use ApiPlatform\Core\Exception\PropertyNotFoundException;
1919
use ApiPlatform\Core\Exception\ResourceClassNotFoundException;
2020
use ApiPlatform\Core\Exception\RuntimeException;
@@ -36,7 +36,7 @@
3636
*/
3737
final class EagerLoadingExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
3838
{
39-
use ShouldEagerLoad;
39+
use EagerLoadingTrait;
4040

4141
private $propertyNameCollectionFactory;
4242
private $propertyMetadataFactory;

src/Bridge/Doctrine/Orm/Extension/FilterEagerLoadingExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension;
1515

16+
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\EagerLoadingTrait;
1617
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\ShouldEagerLoad;
1818
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
1919
use Doctrine\ORM\Query\Expr\Join;
2020
use Doctrine\ORM\QueryBuilder;
@@ -25,7 +25,7 @@
2525
*/
2626
final class FilterEagerLoadingExtension implements QueryCollectionExtensionInterface
2727
{
28-
use ShouldEagerLoad;
28+
use EagerLoadingTrait;
2929

3030
public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFactory, $forceEager = true)
3131
{

src/Bridge/Doctrine/Orm/Util/ShouldEagerLoad.php renamed to src/Bridge/Doctrine/Orm/Util/EagerLoadingTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal
2323
*/
24-
trait ShouldEagerLoad
24+
trait EagerLoadingTrait
2525
{
2626
private $forceEager;
2727
private $resourceMetadataFactory;

0 commit comments

Comments
 (0)