8000 minor #18519 [Form] Update entity.rst (rodmar35) · symfony/symfony-docs@64f8ace · GitHub
[go: up one dir, main page]

Skip to content

Commit 64f8ace

Browse files
committed
minor #18519 [Form] Update entity.rst (rodmar35)
This PR was merged into the 6.3 branch. Discussion ---------- [Form] Update entity.rst Add "use Doctrine\ORM\QueryBuilder " dependencies else we have an error : "Return value must be of type App\Form\QueryBuilder, Doctrine\ORM\QueryBuilder returned" <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 4dcc7b8 Update entity.rst
2 parents 0ebcb29 + 4dcc7b8 commit 64f8ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/forms/types/entity.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ the `query_builder`_ option::
5353

5454
use App\Entity\User;
5555
use Doctrine\ORM\EntityRepository;
5337
56+
use Doctrine\ORM\QueryBuilder;
5657
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
5758
// ...
5859

0 commit comments

Comments
 (0)
0