@@ -10,7 +10,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
1010```
1111
1212For [ Symfony] ( https://symfony.com/ ) ,
13- customize the migration introducing the ` ltree ` field by adding this line
13+ customize the migration that introduces the ` ltree ` field by adding this line
1414at the beginning of the ` up() ` method:
1515
1616``` php
@@ -33,7 +33,6 @@ use MartinGeorgiev\Doctrine\DBAL\Types\ValueObject\Ltree;
3333use MartinGeorgiev\Doctrine\DBAL\Types\ValueObject\LtreeInterface;
3434use Doctrine\Common\Collections\ArrayCollection;
3535use Doctrine\Common\Collections\Collection;
36- use Doctrine\DBAL\Types\Types;
3736use Doctrine\ORM\Mapping as ORM;
3837use Symfony\Bridge\Doctrine\Types\UuidType;
3938use Symfony\Component\Uid\Uuid;
@@ -139,12 +138,12 @@ Add a GiST index to an `ltree` column by manually adding its `CREATE INDEX`
139138command to the migration:
140139
141140``` sql
142- // Example GiST index for ltree with a custom signature length (must be a multiple of 4 )
141+ -- Example GiST index for ltree with a custom signature length (must be a multiple of 4)
143142CREATE INDEX my_entity_path_gist_idx
144143 ON my_entity USING GIST (path gist_ltree_ops(siglen = 100 ));
145144```
146145
147- ⚠️ ** Important** : Changing an entity's parent requires to cascade the change
146+ ⚠️ ** Important** : Changing an entity's parent requires cascading the change
148147to all its children.
149148This is not handled automatically by Doctrine.
150149Implement a [ preUpdate] ( https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/events.html#reference-events-pre-update )
0 commit comments