Skip to content

Commit 6659356

Browse files
committed
requested changes
Signed-off-by: Jurj-Bogdan <[email protected]>
1 parent ad223b0 commit 6659356

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/book/v6/tutorials/create-book-module-via-dot-maker.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Book extends AbstractEntity
191191
```
192192

193193
The `BookService` class will require minor modifications for the `getBooks()` and `saveBook()` methods, to add the custom properties added in the previous step.
194-
The class should look like the following after updating the methods/
194+
The class should look like the following after updating the methods.
195195

196196
* `src/Book/src/Service/BookService.php`
197197

@@ -279,7 +279,8 @@ class BookService implements BookServiceInterface
279279

280280
When creating or updating a book, we will need some validators, so we will create input filters that will be used to validate the data received in the request.
281281

282-
By creating a `module` with `dot-maker`, separate inputs will not be created. However, you can still generate them as using these steps:
282+
By creating a `module` with `dot-maker`, separate inputs will not be created.
283+
However, you can still generate them as using these steps:
283284

284285
* Run the following to start adding `Input` classes:
285286

@@ -321,7 +322,7 @@ class CreateBookInputFilter extends AbstractInputFilter
321322

322323
We create separate `Input` files to demonstrate their reusability and obtain a clean `CreateBookInputFilter` but you could have all the inputs created directly in the `CreateBookInputFilter` like this:
323324

324-
> Note that `dot-maker` will not generate inputs in the constructor, so the following are to be added by hand **if** going for this approach
325+
> Note that `dot-maker` will not generate inputs in the constructor, so the following are to be added by hand **if** going for this approach.
325326
326327
```php
327328
$nameInput = new Input();
@@ -369,7 +370,7 @@ $this->add($releaseDateInput);
369370

370371
## Migrations
371372

372-
As all changes are done, so at this point the migration file can be generated to create the associated table for the `Book` entity.
373+
All changes are done, so at this point the migration file can be generated to create the associated table for the `Book` entity.
373374

374375
> You can check the mapping files by running:
375376
@@ -383,7 +384,7 @@ php ./bin/doctrine orm:validate-schema
383384
php ./vendor/bin/doctrine-migrations diff
384385
```
385386

386-
This will check for differences between your entities and database structure and create migration files if necessary, in src/Core/src/App/src/Migration.
387+
This will check for differences between your entities and database structure and create migration files if necessary, in `src/Core/src/App/src/Migration`.
387388

388389
To execute the migrations run:
389390

0 commit comments

Comments
 (0)