Skip to content

Commit

Permalink
Removed alias from ModelManagerInterface::createQuery (#6559)
Browse files Browse the repository at this point in the history
$alias parameter does not make sense in an persistence agnostic
environment.
  • Loading branch information
neok authored Dec 5, 2020
1 parent 29bbbb0 commit e29ffa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ UPGRADE 3.x
UPGRADE FROM 3.xx to 3.xx
=========================

### Sonata\AdminBundle\Model\ModelManagerInterface

Argument 2 of `Sonata\AdminBundle\Model\ModelManagerInterface::createQuery()` method has been removed.

### Sonata\AdminBundle\Admin\Pool

- Passing a `Symfony\Component\PropertyAccess\PropertyAccessorInterface` instance as 4 argument instantiating
Expand Down
3 changes: 1 addition & 2 deletions src/Model/ModelManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ public function getParentFieldDescription($parentAssociationMapping, $class);

/**
* @param string $class
* @param string $alias
*
* @return ProxyQueryInterface
*
* @phpstan-param class-string $class
*/
public function createQuery($class, $alias = 'o');
public function createQuery($class);

/**
* Get the identifier for the model type of this class.
Expand Down

0 comments on commit e29ffa2

Please sign in to comment.