You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/v1/chapter-1.md
+7-57Lines changed: 7 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ return [
77
77
];
78
78
```
79
79
80
-
### Declare the Doctrine Drivers and Migrations Location
80
+
### Declare the Doctrine Drivers
81
81
82
82
With the very nice utility of the package `laminas/laminas-config-aggregator` we can declare our doctrine settings in the `src/App/src/ConfigProvider.php` file.
83
83
This package takes all the provided configs from the `config/config.php` file and merges them into one.
@@ -132,12 +132,12 @@ private function getDoctrineConfig(): array
132
132
],
133
133
'configuration' => [
134
134
'orm_default' => [
135
-
'result_cache' => 'filesystem',
136
-
'metadata_cache' => 'filesystem',
137
-
'query_cache' => 'filesystem',
138
-
'hydration_cache' => 'array',
139
-
'typed_field_mapper' => null,
140
-
'second_level_cache' => [
135
+
'result_cache' => 'filesystem',
136
+
'metadata_cache' => 'filesystem',
137
+
'query_cache' => 'filesystem',
138
+
'hydration_cache' => 'array',
139
+
'typed_field_mapper' => null,
140
+
'second_level_cache' => [
141
141
'enabled' => true,
142
142
'default_lifetime' => 3600,
143
143
'default_lock_lifetime' => 60,
@@ -153,47 +153,13 @@ private function getDoctrineConfig(): array
153
153
'class' => MappingDriverChain::class,
154
154
],
155
155
],
156
-
'migrations' => [
157
-
// Modify this line based on where you would like to have you migrations
158
-
'migrations_paths' => [
159
-
'Migrations' => 'src/Migrations',
160
-
],
161
-
'all_or_nothing' => true,
162
-
'check_database_platform' => true,
163
-
],
164
156
'types' => [
165
157
UuidType::NAME => UuidType::class,
166
158
],
167
159
];
168
160
}
169
161
```
170
162
171
-
We also require a new file `config/cli-config.php`.
172
-
It initializes and returns a `DependencyFactory` that Doctrine Migrations uses to run migrations.
173
-
174
-

175
-
176
-
```php
177
-
<?php
178
-
179
-
declare(strict_types=1);
180
-
181
-
use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager;
182
-
use Doctrine\Migrations\Configuration\Migration\ConfigurationArray;
Copy file name to clipboardExpand all lines: docs/book/v1/introduction.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,10 @@
3
3
For the upcoming tutorial steps we assume that you already have installed the following:
4
4
5
5
- A UNIX-based development environment.
6
-
If not, we recommend [AlmaLinux](https://almalinux.org/) in a WSL2 container
6
+
If not, we recommend [AlmaLinux](https://almalinux.org/) in a WSL2 container.
7
+
You can check our [guide](https://docs.dotkernel.org/development/v2/setup/installation/) for setting up you container.
7
8
- A recent IDE, for example [PhpStorm](https://www.jetbrains.com/phpstorm/) or [VSCode](https://code.visualstudio.com/)
8
9
- A fresh installation of [Dotkernel Light](https://github.com/dotkernel/light)
9
10
- Default UTF-8 encoding for files and LF type line separator
10
11
11
-
For any further tips related to the development environment we suggest that you check out our [development documentation](https://docs.dotkernel.org/development/v2/setup/installation/).
12
+
Feel free to check out our [development documentation](https://docs.dotkernel.org/development/v2/setup/installation/) in case of any further questions.
0 commit comments