Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"doctrine/doctrine-bundle": "^2.11.3",
"doctrine/data-fixtures": "^1.7 || ^2.0",
"doctrine/orm": "^3.1",
"doctrine/persistence": "^3.3.1",
"doctrine/persistence": "^3.3.1 || ^4.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/finder": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
Expand Down
22 changes: 12 additions & 10 deletions fixtures/Persistence/FakeDoctrineManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
namespace Hautelook\AliceBundle\Persistence;

use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\ObjectManager;
use Doctrine\Persistence\ObjectRepository;
use function func_get_args;
use Hautelook\AliceBundle\NotCallableTrait;

Expand All @@ -26,52 +28,52 @@ public function getDefaultConnectionName(): string
$this->__call(__METHOD__, func_get_args());
}

public function getConnection($name = null): void
public function getConnection($name = null): object
{
$this->__call(__METHOD__, func_get_args());
}

public function getConnections(): void
public function getConnections(): array
{
$this->__call(__METHOD__, func_get_args());
}

public function getConnectionNames(): void
public function getConnectionNames(): array
{
$this->__call(__METHOD__, func_get_args());
}

public function getDefaultManagerName(): void
public function getDefaultManagerName(): string
{
$this->__call(__METHOD__, func_get_args());
}

public function getManager($name = null): void
public function getManager($name = null): ObjectManager
{
$this->__call(__METHOD__, func_get_args());
}

public function getManagers(): void
public function getManagers(): array
{
$this->__call(__METHOD__, func_get_args());
}

public function resetManager($name = null): void
public function resetManager($name = null): ObjectManager
{
$this->__call(__METHOD__, func_get_args());
}

public function getManagerNames(): void
public function getManagerNames(): array
{
$this->__call(__METHOD__, func_get_args());
}

public function getRepository($persistentObject, $persistentManagerName = null): void
public function getRepository($persistentObject, $persistentManagerName = null): ObjectRepository
{
$this->__call(__METHOD__, func_get_args());
}

public function getManagerForClass($class): void
public function getManagerForClass($class): ObjectManager|null
{
$this->__call(__METHOD__, func_get_args());
}
Expand Down
7 changes: 6 additions & 1 deletion fixtures/Persistence/ObjectMapper/FakeEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function initializeObject($obj): void
$this->__call(__METHOD__, func_get_args());
}

public function contains($object): void
public function contains($object): bool
{
$this->__call(__METHOD__, func_get_args());
}
Expand All @@ -214,4 +214,9 @@ public function getClassMetadata($className): ClassMetadata
{
$this->__call(__METHOD__, func_get_args());
}

public function isUninitializedObject(mixed $value): bool
{
$this->__call(__METHOD__, func_get_args());
}
}