1
The following query returns the correct record, but missing items on its return.
$nota = $this->Nota->find('first', [
'conditions' => ['id' => $numero,
'serie' => $serie
]
]);
For example: When not error, returns the full array
array {
["id"] => "1"
["nome"] => "nome"
["serie"] => "serie"
["texto"] => "texto"
}
When error returns incomplete array
array {
["id"] => "2"
["serie"] => "serie2"
["nome"] => "nome2"
}
They are all fields of the same table, but in one moment returns all fields, in another returns only to a certain extent.
– Lucas Thibau Paulino
You tried to pass the list as I’m suggesting?
– bfavaretto
Didn’t it work?! But if Fields is omitted, cake should search all fields, some idea of why it should not be issued?
– Lucas Thibau Paulino
I don’t know the cause. Maybe some global hook/filter changing Fields if it’s not explicit.
– bfavaretto