Phalcon v3.3.0 Release Notes

Release Date: 2017-12-23 // over 6 years ago
    • ➕ Added support of PHP 7.2 and initial support of PHP 7.3
    • ➕ Added support for switch/case syntax to the Volt Engine #13107
    • ➕ Added Phalcon\Logger\Adapter\Blackhole #13074
    • ➕ Added Phalcon\Http\Request::hasHeader to check if certain header exists
    • ➕ Added support of 103 (Early Hint) HTTP status code
    • ➕ Added router:beforeMount event to Router::mount #13158
    • ➕ Added Phalcon\Mvc\Application::sendHeadersOnHandleRequest to enable or disable sending headers by each request handling #13101
    • ➕ Added Phalcon\Mvc\Application::sendCookiesOnHandleRequest to enable or disable sending cookies by each request handling #13101
    • ➕ Added ability to use PDO option aliases on database connect #13010
    • ➕ Added Phalcon\Mvc\Model\MetaData\Apcu #13078
    • ➕ Added ability to use string(file path) as a argument in Phalcon\Config\Factory::load()
    • ➕ Added Phalcon\Mvc\Mico\Collection::mapVia to map routes via methods
    • ➕ Added Phalcon\Mvc\Model::setOldSnapshotData to set old snapshot data separately to current snapshot data
    • ➕ Added Phalcon\Http\Response::removeHeader to remove specific header from response
    • 🛠 Fixed Phalcon\Mvc\Model\Query\Builder::getPhql to correct generate PHQL in argument's array when using order DESC or ASC #11827
    • 🛠 Fixed Phalcon\Db\Dialect\Postgresql::createTable to produce valid SQL for table definition with BOOLEAN types #13132
    • 🛠 Fixed Phalcon\Db\Dialect\Postgresql::_castDefault to return correct value for BOOLEAN type #13132, phalcon/phalcon-devtools#1118
    • 🛠 Fixed Phalcon\Mvc\Model::_doLowInsert to correct save snapshot on creation/save identityless models #13166
    • 🛠 Fixed Phalcon\Mvc\Model::_doLowUpdate to correctly work with Phalcon\Db\RawValue #13170
    • 🛠 Fixed Phalcon\Mvc\Model::allowEmptyStringValues to correct works with saving empty string values when DEFAULT not set in SQL
    • 🛠 Fixed Phalcon\Mvc\Model\Behavior\SoftDelete to correctly update snapshots after deleting item
    • 🛠 Fixed Phalcon\Mvc\Model to set old snapshot when no fields are changed when dynamic update is enabled
    • 🛠 Fixed Phalcon\Acl\Adapter\Memory::isAllowed to properly pass role and resource objects to custom function if they are objects of the same class
    • 🔄 Changed Phalcon\Mvc\Model to allow to pass a transaction within the query context #13226
    • ➕ Added Phalcon\Mvc\Query::setTransaction to enable an override transaction #13226