Phalcon v3.1.0 Release Notes

    • ➕ Added Phalcon\Validation\Validator\Callback, Phalcon\Validation::getData
    • ➕ Added the ability to truncate database tables
    • ➕ Added Phalcon\Mvc\Model\Binder, class used for binding models to parameters in dispatcher, micro, added Phalcon\Dispatcher::getBoundModels and Phalcon\Mvc\Micro::getBoundModels to getting bound models, added Phalcon\Mvc\Micro\Collection\LazyLoader::callMethod
    • ➕ Added afterBinding event to Phalcon\Dispatcher and Phalcon\Mvc\Micro, added Phalcon\Mvc\Micro::afterBinding
    • ➕ Added the ability to set custom Resultset class returned by find() #12166
    • ➕ Added the ability to clear appended and prepended title elements (Phalcon\Tag::appendTitle, Phalcon\Tag::prependTitle). Now you can use array to add multiple titles. For more details check #12238.
    • ➕ Added the ability to specify what empty means in the 'allowEmpty' option of the validators. Now it accepts as well an array specifying what's empty, for example ['', false]
    • ➕ Added the ability to use Phalcon\Validation with Phalcon\Mvc\Collection, deprecated Phalcon\Mvc\Collection::validationHasFailed
    • 🛠 Fixes internal cache saving in Phalcon\Mvc\Model\Binder when no cache backend is used
    • ➕ Added Phalcon\Acl\Adapter\Memory::getActiveKey, Phalcon\Acl\Adapter\Memory::activeFunctionCustomArgumentsCount and Phalcon\Acl\Adapter\Memory::getActiveFunction to get latest key, number of custom arguments, and function used to acquire access
    • ➕ Added Phalcon\Firewall component