8000 query_builder's callback must return a Doctrine\ORM\QueryBuilder · symfony/symfony-docs@bf0ce1a · GitHub
[go: up one dir, main page]

Skip to content

Commit bf0ce1a

Browse files
Nelson da Costaweaverryan
authored andcommitted
query_builder's callback must return a Doctrine\ORM\QueryBuilder
calling a repository in a "query_builder" callback would result in an exception saying: Expected argument of type "Doctrine\ORM\QueryBuilder", "array" given
1 parent 75571ae commit bf0ce1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/dynamic_form_modification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ and fill in the listener logic::
279279
'class' => 'Acme\DemoBundle\Entity\User',
280280
'property' => 'fullName',
281281
'query_builder' => function(EntityRepository $er) use ($user) {
282-
// build a custom query, or call a method on your repository (even better!)
282+
// build a custom query
283283
},
284284
);
285285

0 commit comments

Comments
 (0)
0