For example find(['id', '=', $id] returns nothing whereas retrieve($id) returns the object of the right id.
Using find(['code', '=', 'GB']) on a Country class pointing at res.country is another way to test this.
I've tried switching the "found" case to use retrieve instead of directly instantiating the object and this doesn't seem to have fixed it, which is doubly strange.
For some reason find() is returning nothing.
For example
find(['id', '=', $id]
returns nothing whereasretrieve($id)
returns the object of the right id.Using
find(['code', '=', 'GB'])
on a Country class pointing atres.country
is another way to test this.I've tried switching the "found" case to use retrieve instead of directly instantiating the object and this doesn't seem to have fixed it, which is doubly strange.