Hi,
I was trying to bind multiple parameters to one Query in two different ways:
1) $someData = $someRepo->findBy(array('value1' => $value1, 'value2' =>
$value2));
2) $query = $someRepo->createQueryBuilder('d')
->where('d.value1 > :val1')
->andWhere('d.value2 > :val2')
->setParameter('val1', $value1)
->setParameter('val2', $value2)
->getQuery(); $someData = $query->getResult();
Both ways caused the same result:
It feels like only the 2nd variable is passed to the database query.
I guess this problem can be related to #2262
<https://github.com/doctrine/dbal/pull/2262> and #2261
<https://github.com/doctrine/dbal/issues/2261> but there is no central fix.
Is there anyone with the same problem or with any idea how to solve it -
without editing doctrine code?
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.