$this->setTable() or $this->table not sticking |
Ok, so, I've got a dynamic database setup where tickets are put in the tables and the tables can be created on the fly (as well as columns) - so I'm setting up the database model to handle this based upon incoming IDs.
Model code: PHP Code: protected $table = 'TN'; PHP Code: $model2 = new Protoengine(); The output is: Code: TN: start The model sees the change from TN to ticketTypeData to PH (as it should) - however the query in the getTickets() function should be calling the PH table and not the ticketTypeData table. why? |
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
|