Version 0.5.3 Stable
niden
released this
29 Mar 16:20
·
16714 commits
to master
since this release
- Fixed bug in Phalcon\Mvc\Model::_exists making PHQL inserts fail
- Fixed bug passing extra parameters to Phalcon\Mvc\Model magic methods
- Fixed bug in Phalcon\Loader producing that pathFound event wasn't triggered
- Added throwing exception in Phalcon\Loader when trying to write in a read only file
- Now Phalcon\Loader replaces _ by DIRECTORY_SEPARATOR in most strategies
- Fixed bug in Phalcon\Mvc\Model\Resultset::seek that doesn't allow to paginate results in Phalcon\Paginator
- Fixed bug in Phalcon\Mvc\Dispatcher that doesn't throws an exception when an infinite forward is produced
- PDO error mode was changed to PDO::ERRMODE_EXCEPTION producing exceptions instead of silent error messages
- Fixed wrong precedence in PHQL operators
- Fixed bug that makes that the correct value for SERIAL columns wasn't filled for PostgreSQL
- Added an extra parameter "data" to an event triggering in Phalcon\Events allowing getting more information about certain event
- Added an extra parameter to Phalcon\Db::query and Phalcon\Db::execute to bind parameters by their data type
- Added recognition of the related sequence for PostgreSQL when inserting data into tables with SERIAL columns Phalcon\Mvc\Model
- Phalcon\Db\Adapter*::describeColumns try to find the best bind param type for every column
- Added bindType to Phalcon\Db\Column to know what its best bind param to cast according to its data type
- Added getDefaultValue() to Phalcon\Db\Adapter* in order the best value to insert in an auto-increment or serial column
- Added bindTypes param to Phalcon\Mvc\Model::find and Phalcon\Mvc\Model::findFirst
- Due to the new agressive type-casting when binding parameters, Phalcon\Mvc\Model isn't capable anymore of generate reliable automatic keys for the cache
- Fixed bug that makes actions and events implemented in a parent class innaccessibles for Phalcon
- Now Phalcon\Text::camelize checks for underscores and dashes
- Added Phalcon\Mvc\Model::getRelated to return related relation models on namespaced models
- Added Phalcon\CLI components to create CLI applications
- Added SQLite support
- Removed support for Twig and Mustache
- Added PhalconQL (PHQL), a high level query language directly engaged with the Phalcon\Mvc\Model component
- Multiples refactorings removing unused code
- Added support to match routes on a determined individual or a set of HTTP methods
- Added support for named parameters without requiring a regular expression in Phalcon\Mvc\Router
- Added Phalcon\Mvc\Router\Route to encapsulate the information of a route
- Added Phalcon\Mvc\Micro to create applications in a micro-framework style
- Added Phalcon\Di\FactoryDefault that has the Phalcon Components registered as Default
- Added Phalcon\DI as dependency injector container
- Added Phalcon\Events as events management component
- Removed Phalcon\Router\Rewrite
- Phalcon\Router\Regex moved to Phalcon\Mvc\Router
- Phalcon\Dispatcher moved to Phalcon\Mvc\Dispatcher
- Phalcon\Mvc\Dispatcher::forward now only accepts an array parameter
- Dispatcher events has been removed (beforeDispatch and afterDispatch) in favor of the new EventsManager component
- Controller look up based on controllersDir has been removed in favor of autoloaders
- Phalcon\Controller moved to Phalcon\Mvc\Controller
- Phalcon\Model moved to Phalcon\Mvc\Model
- Phalcon\Transaction moved to Phalcon\Mvc\Model\Transaction
- Removed Phalcon\Db\Pool
- ModelsManager look up based on modelsDir has been removed in favor of autoloaders
- Phalcon\Db\Pdo::describeColumns return an array of Phalcon\Db\Columns
- Removed Phalcon\Controller\Front
- Most "Factories" and "Singletons" implementations were removed
- Phalcon\Mvc\Model\Metadata adapters must be instantiated directly
- Removed memory leaks when reading class constants
- Replaced the database native adapters by PDO
- Classes are now registered as PHP namespaces.
- Improved stability running Phalcon with PHP versions lower or equal than 5.3.3
- Thousand of unnecessary intermediate variables were removed improving stability
- Phalcon now performs a reduced number of copy-on-write checks
- Added class modifiers like Abstract or Final to Phalcon classes
- Fixed memory leaks generated when throwing internal exceptions
- Removed deprecated experimental function and method calls