Skip to content

Commit 9c42525

Browse files
authored
Merge pull request #19 from Howriq/main
Docs chapter 3
2 parents 5056b43 + c00d630 commit 9c42525

File tree

9 files changed

+479
-5
lines changed

9 files changed

+479
-5
lines changed

docs/book/v1/chapter-1.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ private function getDoctrineConfig(): array
165165
Now that everything has been configured we only need to do one last thing, to create an executable for the Doctrine CLI.
166166
In our case we will create a `doctrine` file inside the application's `bin` directory:
167167

168-
![doctrine](images/chapter-1/doctrine.png)
169-
170168
```php
171169
#!/usr/bin/env php
172170
<?php
@@ -207,3 +205,10 @@ Options:
207205
-n, --no-interaction Do not ask any interactive question
208206
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
209207
```
208+
209+
### Summary
210+
211+
- [Modified] composer.json
212+
- [Modified] config/autoload/local.php
213+
- [Modified] src/App/src/ConfigProvider.php
214+
- [+] bin/doctrine

docs/book/v1/chapter-2.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The call should lead to a call that contains the following output:
136136
Now that we have set up the Doctrine Migrations, we shall now start working on our entities.
137137

138138
We need to create a base for our entities so that they have the same starting point.
139-
For that, we will add a new directory `src/App/src/Entiy` in which we will add an abstract class, `AbstractEntity.php`:
139+
For that, we will add a new directory `src/App/src/Entity` in which we will add an abstract class, `AbstractEntity.php`:
140140

141141
```php
142142
<?php
@@ -470,7 +470,7 @@ The module is now registered.
470470
For the last step we will create a migration using our `bin/doctrine-migrations` file and then execute it:
471471

472472
```shell
473-
php bin/doctrine-migrations.php migrations:diff
473+
php bin/doctrine-migrations migrations:diff
474474
```
475475

476476
You should get an output similar to:
@@ -507,11 +507,26 @@ final class Version20251127183637 extends AbstractMigration
507507
We only have to execute the migrations now with the command:
508508

509509
```shell
510-
php bin/doctrine-migrations.php migrations:migrate
510+
php bin/doctrine-migrations migrations:migrate
511511
```
512512

513513
The output should be similar to this:
514514

515515
```terminaloutput
516516
[OK] Successfully migrated to version: Migrations\Version2025112718363
517517
```
518+
519+
### Summary
520+
521+
- [Modified] src/App/src/ConfigProvider.php
522+
- [+] config/cli-config.php
523+
- [+] src/App/src/DBAL/Types/UuidType.php
524+
- [+] bin/doctrine-migrations
525+
- [+] src/App/src/Entity/AbstractEntity.php
526+
- [+] src/Book/src/Entity/Book.php
527+
- [+] src/App/src/Repository/AbstractRepository.php
528+
- [+] src/App/src/Book/BookRepository.php
529+
- [+] src/Book/src/ConfigProvider.php
530+
- [Modified] config/config.php
531+
- [Modified] composer.json
532+
- [+] src/App/src/Migration/Version{date_time}.php

0 commit comments

Comments
 (0)