Skip to content

Commit 871935d

Browse files
committed
Docs chapter 3
Signed-off-by: Howriq <horea@rospace.com>
1 parent b08035b commit 871935d

11 files changed

Lines changed: 479 additions & 4 deletions

File tree

‎docs/book/v1/chapter-1.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +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)
169168

170169
```php
171170
#!/usr/bin/env php
@@ -207,3 +206,10 @@ Options:
207206
-n, --no-interaction Do not ask any interactive question
208207
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
209208
```
209+
210+
### Summary
211+
212+
- [Modified] composer.json
213+
- [Modified] config/autoload/local.php
214+
- [Modified] src/App/src/ConfigProvider.php
215+
- [+] 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)