I want to do a query that finds the date, but the query below is finding even when I do not pass value or when it is a value that has nothing to do with date:
$busca = $this->Despesa->find('all', array('data_despesa' => '2'));
In this query there was nothing to return. But you're bringing everything in, like a select * from nomeDaTabela
.
What's wrong?
I'm trying to make sql out of the standard framework, how would it be? I have already seen something like this: $this->query("codigo dml");