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
@@ -263,9 +253,6 @@ It is time to finally time to work on our `Book` Entity.
263
253
We now create a new module with the location `src/Book/src`.
264
254
In this module we create a directory called `Entity` in which we shall create our `Book.php` class.
265
255
266
-

267
-

268
-
269
256
```php
270
257
<?php
271
258
@@ -326,13 +313,13 @@ class Book extends AbstractEntity
326
313
}
327
314
```
328
315
329
-
In the book class you can see various Doctrine tags such as `#[ORM\Table(name: 'books')]` which specifies the name of the table that will be related to this Entity.
330
-
There are plenty of tags that can be added, but for the sake of simplicity we shall just stick to the table and the columns that will populate it.
316
+
In the book class you can see various Doctrine tags such as `#[ORM\Table(name: 'books')]` which specify the name of the table that will be related to this Entity.
317
+
There are many tags that can be added, but for the sake of simplicity, we will stick to the table and the columns that will populate it.
331
318
332
319
## Repositories
333
320
334
-
In the class that we have created previously you might have noticed that our Entity is related to a Repository: `#[ORM\Entity(repositoryClass: BookRepository::class)]`.
335
-
We have specified which Repository will handle queries for this Entity.
321
+
In the class we created earlier, you may have noticed that our Entity is linked to a Repository using the following annotation: `#[ORM\Entity(repositoryClass: BookRepository::class)]`.
322
+
This specifies which Repository will handle queries for this Entity.
336
323
This allows us to write custom database logic for it.
337
324
338
325
Same as for the Entities, we need to create a base and our future Repositories.
@@ -342,8 +329,6 @@ Two repositories shall be created:
0 commit comments