Hello all,
First off, let me apologize ahead of time if anything I write seems incoherent or ignorant. I am 100% new to F3 and I recently inherited a buggy app from a developer who left my organization.
That being said, I've narrowed down my error to a line that is set as follows:
public function drop()
{
$type = new Types($this->db);
$type->getbyID($this->f3->get('PARAMS.id'));
.
.
.
I have the routing for the page the causes the error set to:
GET|POST /@id/drop=Controller->drop
Other pages in this application have the exact same setup and work without any problem. However, in the method
drop for some reason, it causes the following error:
Fatal error: PDOStatement: Field 'id' doesn't have a default value in D:\...\...\...\...\lib\db\sql.php on line 235
I'm starting to get a little frustrated because I've already fixed 4 or 5 other errors in this application that made perfect sense, but this one's had me scratching my head for a few days now. Has anyone else encountered this situation that can explain to me I might be doing wrong?
Thank you!!