Jan Setzer - 2022-05-20 16:15:24
Nice class, I'm giving it a try today.
The save() method tries to update a table with identical name but in different database. Those two tables have different column. Save fails due to missing column.
$sql = self::_getDB()->query("SELECT * FROM `information_schema`.`COLUMNS` WHERE TABLE_NAME = '" . $class::getSource() . "'");
This fetches the first table with matching name but does not check for the correct database.