Is it a bug?

15 views
Skip to first unread message

Nima Sadjadi

unread,
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

unread,
Oct 19, 2019, 1:44:41 PM10/19/19
to doctri...@googlegroups.com
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 doctrine-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doctrine-user/f769cac0-dc1c-4e64-98dc-1e3c5f234973%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages