Skip to content

Commit

Permalink
avoid change on src
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 authored and VincentLanglet committed Feb 28, 2023
1 parent 9abd909 commit 7f42bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"require": {
"php": "^7.4 || ^8.0",
"doctrine/dbal": "^3.4",
"doctrine/doctrine-bundle": "^2.4",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/orm": "^2.14",
"doctrine/persistence": "^3.0",
"doctrine/persistence": "^3.0.2",
"sonata-project/admin-bundle": "^4.18",
"sonata-project/exporter": "^2.0 || ^3.0",
"sonata-project/form-extensions": "^1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ModelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function findOneBy(string $class, array $criteria = []): ?object
public function getEntityManager($class): EntityManagerInterface
{
if (\is_object($class)) {
$class = ClassUtils::getClass($class);
$class = \get_class($class);
}

if (!isset($this->cache[$class])) {
Expand Down

0 comments on commit 7f42bfd

Please sign in to comment.