I'm new to Doctrine and symfony in general, and is trying to have a
function to only select certain record in the database. Using the
following command however, I get the whole content of the table,
regardless of the "where" clause i use;
$ symfony doctrine:dql "FROM Message m where('m.id = ?', 1)"
>> doctrine executing dql query
DQL: FROM Message m where('m.id = ?', 1)
found 2 results
-
id: '1'
sender_id: '1'
receiver_id: '2'
title: hi
message: 'Just to say hi'
is_read: true
is_reply: null
created_at: '2009-05-07 12:21:43'
updated_at: '2009-05-07 12:21:43'
-
id: '2'
sender_id: '2'
receiver_id: '1'
title: 'Re:hi'
message: 'and a hi back to you...'
is_read: true
is_reply: null
created_at: '2009-05-07 12:21:43'
updated_at: '2009-05-07 12:21:43'
Can anyone point out what is wrong with my query?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---