Skip to content

Commit 22863d0

Browse files
committed
docs: fix minor grammar and code issues in LTREE-TYPE.md
1 parent 12d6c8a commit 22863d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/LTREE-TYPE.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
1010
```
1111

1212
For [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
1414
at the beginning of the `up()` method:
1515

1616
```php
@@ -33,7 +33,6 @@ use MartinGeorgiev\Doctrine\DBAL\Types\ValueObject\Ltree;
3333
use MartinGeorgiev\Doctrine\DBAL\Types\ValueObject\LtreeInterface;
3434
use Doctrine\Common\Collections\ArrayCollection;
3535
use Doctrine\Common\Collections\Collection;
36-
use Doctrine\DBAL\Types\Types;
3736
use Doctrine\ORM\Mapping as ORM;
3837
use Symfony\Bridge\Doctrine\Types\UuidType;
3938
use Symfony\Component\Uid\Uuid;
@@ -139,12 +138,12 @@ Add a GiST index to an `ltree` column by manually adding its `CREATE INDEX`
139138
command 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)
143142
CREATE 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
148147
to all its children.
149148
This is not handled automatically by Doctrine.
150149
Implement a [preUpdate](https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/events.html#reference-events-pre-update)

0 commit comments

Comments
 (0)