Skip to content

Commit df45bd1

Browse files
committed
typos
1 parent 0f3f2ac commit df45bd1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doctrine.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ methods:
288288
{
289289
// ...
290290
291-
+ #[ORM\Column(type: "text")];
291+
+ #[ORM\Column(type: 'text')]
292292
+ private $description;
293293
294294
// getDescription() & setDescription() were also added
@@ -361,7 +361,7 @@ and save it::
361361

362362
class ProductController extends AbstractController
363363
{
364-
#[Route('/product', name: 'create_product')
364+
#[Route('/product', name: 'create_product')]
365365
public function createProduct(ManagerRegistry $doctrine): Response
366366
{
367367
$entityManager = $doctrine->getManager();
@@ -446,7 +446,7 @@ some basic validation tasks::
446446

447447
class ProductController extends AbstractController
448448
{
449-
#[Route('/product', name: 'create_product')
449+
#[Route('/product', name: 'create_product')]
450450
public function createProduct(ValidatorInterface $validator): Response
451451
{
452452
$product = new Product();
@@ -505,6 +505,7 @@ be able to go to ``/product/1`` to see your new product::
505505

506506
use App\Entity\Product;
507507
use Symfony\Component\HttpFoundation\Response;
508+
use Symfony\Component\Routing\Annotation\Route;
508509
// ...
509510

510511
class ProductController extends AbstractController
@@ -537,6 +538,7 @@ and injected by the dependency injection container::
537538
use App\Entity\Product;
538539
use App\Repository\ProductRepository;
539540
use Symfony\Component\HttpFoundation\Response;
541+
use Symfony\Component\Routing\Annotation\Route;
540542
// ...
541543

542544
class ProductController extends AbstractController
@@ -619,6 +621,7 @@ Now, simplify your controller::
619621
use App\Entity\Product;
620622
use App\Repository\ProductRepository;
621623
use Symfony\Component\HttpFoundation\Response;
624+
use Symfony\Component\Routing\Annotation\Route;
622625
// ...
623626

624627
class ProductController extends AbstractController
@@ -648,6 +651,7 @@ with any PHP model::
648651
use App\Entity\Product;
649652
use App\Repository\ProductRepository;
650653
use Symfony\Component\HttpFoundation\Response;
654+
use Symfony\Component\Routing\Annotation\Route;
651655
// ...
652656

653657
class ProductController extends AbstractController

0 commit comments

Comments
 (0)