@@ -20,7 +20,6 @@ |
||
20 | 20 | namespace Doctrine\DBAL\Migrations; |
21 | 21 | |
22 | 22 | use Doctrine\DBAL\Migrations\Configuration\Configuration; |
23 | -use Doctrine\ORM\Proxy\ProxyFactory; |
|
24 | 23 | use ProxyManager\Factory\LazyLoadingGhostFactory; |
25 | 24 | |
26 | 25 | /** |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return Schema |
|
41 | + * @return \ProxyManager\Proxy\GhostObjectInterface |
|
42 | 42 | */ |
43 | 43 | public function createFromSchema() |
44 | 44 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | return $this->proxyFactory->createProxy( |
46 | 46 | Schema::class, |
47 | - function (& $wrappedObject, $method, array $parameters, & $initializer) { |
|
47 | + function(& $wrappedObject, $method, array $parameters, & $initializer) { |
|
48 | 48 | $initializer = null; |
49 | 49 | $wrappedObject = $this->originalSchemaManipulator->createFromSchema(); |
50 | 50 | |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function createToSchema(Schema $fromSchema) |
61 | 61 | { |
62 | - if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) { |
|
62 | + if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) { |
|
63 | 63 | return $this->proxyFactory->createProxy( |
64 | 64 | Schema::class, |
65 | - function (& $wrappedObject, $method, array $parameters, & $initializer) use ($fromSchema) { |
|
65 | + function(& $wrappedObject, $method, array $parameters, & $initializer) use ($fromSchema) { |
|
66 | 66 | $initializer = null; |
67 | 67 | $wrappedObject = $this->originalSchemaManipulator->createToSchema($fromSchema); |
68 | 68 | |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return array |
82 | 82 | */ |
83 | - public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema) |
|
83 | + public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema) |
|
84 | 84 | { |
85 | 85 | if ( |
86 | 86 | $toSchema instanceof LazyLoadingInterface |
87 | - && ! $toSchema->isProxyInitialized() |
|
87 | + && !$toSchema->isProxyInitialized() |
|
88 | 88 | ) { |
89 | 89 | return []; |
90 | 90 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * @param Schema $toSchema |
58 | 58 | * @return array |
59 | 59 | */ |
60 | - public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema) |
|
60 | + public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema) |
|
61 | 61 | { |
62 | 62 | return $fromSchema->getMigrateToSql($toSchema, $this->platform); |
63 | 63 | } |