Go to most recent revision | Hide changed files | Details | Compare with Previous | Blame | RSS feed
* Model.php: Added findByProperty()
* Db/Database.php: Removed unnecessary spaces
ORM: Allow to search for any ID, but never assign it until successful
Access global namespace explicitly
(Abstract)Model: Support exclusive mapping in constructor call
* Model.php - find(): Allow searching by ID directly - Fixed PHPdoc
Fixed PHPdoc
* Base.php: Fixed PHPdoc
AbstractModel extends Base for getters/setters, wrappers always throw exceptions on error
* Db/Database.php - Added createTable() to create table from meta-information * Db/MySQLDB.php - Overridden _columnDef() to handle specialties for createTable() * Db/Table.php - Added meta-information to create() table from it (uses Database::createTable()) * Db/MySQLTable.php - Overridden _createOptions() to handle specialties for Table::create()
* Application.php - autoload(): + Security fixes + Use DIRECTORY_SEPARATOR
Table's meta-properties are static to allow for reuse across instances
All ORM $_persistent* properties are static now
ORM $_persistentTable is now static to allow reuse across model objects
* Model.php: - $_persistentProperties is empty by default - Added insert() to avoid unnecessary SELECT - Speed optimizations
Use Autoloader
Added namespaces
* Db/Table.php - Support string for database class, converted to corresponding instance - use === instead of is_null()
* Db/Mapper.php: - Mapper inherits from AbstractModel for generic getters/setters, constructors must be `protected'
* Db/Database.php - Database::updates(): Require array for $updates
←Prev12Next→
Show All