Commit Graph

3 Commits

Author SHA1 Message Date
Abel Hoogeveen 4b200dbd63 Upgraded database backend for PHP 8.1.
Changes implemented:
- Proper type definitions, for both return types and properties.
- Streamlined if statements, removing unnecessary statements.
- Upgraded Mongo backend to be compatible with driver 1.15.
2022-12-22 10:46:13 +01:00
Abel Hoogeveen 88135275d9
Implemented changes requested by FuzeWorks\Application.
- TableModels now return a TableModelResult. This provides a standardized return variable for all types of TableModels.
- TableModelResults can be iterated over, or turned into an array with toArray()
- TableModels are now requested using the Database::getTableModel() method. Arguments are put in a different order.
- PDOTableModel no longer supports joins
- PDOTableModel no longer supports fetchMode. Use TableModelResult::group instead for certain cases.
- Optimized DatabaseEngine
2019-09-08 20:32:42 +02:00
Abel Hoogeveen 18f2a6bb40
Moved retrieval of TableModels into the \FuzeWorks\Database class.
- BREAKING: tableModels can no longer be fetched using the iDatabaseTableModel::__construct() method. From now on users must implement the Database::getTableModel() method using the Factory.
- TableModels now have a few more required methods from the iDatabaseTableModel interface. This change shouldn't impact much
2019-08-21 16:42:47 +02:00