Duvida sobre o ->set() Function


#1

Quando uso
$editQuery->update()
->set()->execute();
Ele funciona porem continua dando o erro.
Call to undefined function App\Controller\set().
Gostaria de saber o porque?


#2

The first help I can give you is make the question available in English for other people to understand. :slight_smile:
After writing:
$editQuery->update()
->set()->execute();
You get the message "Call to undefined function App\Controller\set()"
You would like to know why this is. Is that correct? :slight_smile:
Apparently, you are calling “Controller” which is quite a generic name. I would have expected a named controller like “ThingamajigController”. There is no set() function available on entity “Controller”. As I am not experienced enough yet to dig further, I will eave any further help to people who do know what to expect from “Controller” and where you would typically call the set() function.