$this->setTable() or $this->table not sticking |
(03-19-2021, 11:21 AM)InsiteFX Wrote: When working with multiple tables you should always call. Tried it two ways: PHP Code: $this->table->clear(); resulted in: Code: Call to a member function clear() on string and: PHP Code: $this->clear(); resulted in: Code: BadMethodCallException I looked for the clear() function in the database system folder, didn't find it. I found a clear() function in the email and the table array parts of the system folder, but nothing under database. So, still looking for an answer to this if anyone has any ideas. I added: PHP Code: $this->from($this->table, true); After the setTable for the new table and it did the job. The setTable function *should* be doing this in the set table in the framework as I can't see a logical reason to not have the table change when a setTable function is called. |
Messages In This Thread |
$this->setTable() or $this->table not sticking - by Kaosweaver - 03-19-2021, 06:36 AM
RE: $this->setTable() or $this->table not sticking - by InsiteFX - 03-19-2021, 11:21 AM
RE: $this->setTable() or $this->table not sticking - by Kaosweaver - 03-22-2021, 05:10 AM
RE: $this->setTable() or $this->table not sticking - by InsiteFX - 03-29-2021, 08:48 PM
RE: $this->setTable() or $this->table not sticking - by Marshall - 07-15-2022, 12:53 PM
|