Undefined property: stdClass::$id #1070
-
Hello, Excuse my English, I am using the translator, since it is low level.
In my case I have a detail of invoices, therefore, my ID is the number of this, and not that of the detail, so in
So it forces me to add the id column:
and change to:
so as not to throw the error. This error does not appear when selecting only some rows. Hopefully they can help me. Greetings. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use the following function to add the ID into the query. public function configure(): void {
$this->setAdditionalSelects(['users.id as id']);
} |
Beta Was this translation helpful? Give feedback.
Use the following function to add the ID into the query.