Is it a bug?

Skip to first unread message

Nima Sadjadi

Oct 18, 2019, 2:06:23 PM10/18/19
to doctrine-user
I have field with name "code", type is int(11) and NOT nullable.

In WHERE clause of a dql I use it to query like "WHERE u.code = :n",
But whatever value I pass to setParameter(), it finds a record that its code value is 0. Why this record should be find with whatever value I pass to query?

Benjamin Eberlei

Oct 19, 2019, 1:44:41 PM10/19/19
how do you declare the field in the doctrine entity?

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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages