Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee9fc39

Browse files
committed
Merge remote-tracking branch 'origin/2.0' into 2.0
2 parents 7415bb7 + efcfab5 commit ee9fc39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/testing/doctrine.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ the following example::
117117
public function createSearchByNameQueryBuilder($name)
118118
{
119119
return $this->createQueryBuilder('p')
120-
->where('p.name LIKE :name', $name)
120+
->where('p.name LIKE :name')
121+
->setParameter('name', $name);
121122
}
122123
}
123124

0 commit comments

Comments
 (0)