1
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 not to return anything. But it is bringing everything, as if it were a select * from nomeDaTabela
.
What’s wrong with it?
I’m wanting to do sql outside the framework standard, how would it be? I’ve seen that it’s something like this: $this->query("codigo dml");